Coder Social home page Coder Social logo

backspace-disabler's Introduction

Hi 👋, I'm Sébastien, a freelance developer living near Paris, specialized in React and React-Native.

I’m currently working on Docusaurus, a React-based static site generator with a focus on documentation, as a contractor for Facebook.

Website - LinkedIn - StackOverflow - Dev.to

Twitter Follow


I am the author of ThisWeekInReact.com, the best newsletter to stay up-to-date with the React ecosystem. Join more than 15000 readers today! 🔥

ThisWeekInReact.com banner


I like:

  • remote work: since 2014
  • flexibility and trust: I work for people that care about outcomes
  • interesting projects: I choose carefully, to keep learning
  • part-time: working on multiple projects gives a diverse experience
  • consulting, coaching, training, audits: the best ROI for my customers, and a higher rate for me

I chose a different path than most French contractors (on-site, full-time, multi-years contracts).

Previously, I was a Java/Scala developer for a few years, and I didn't like JavaScript much :)


slorber's github stats

backspace-disabler's People

Contributors

ahutchings avatar fresheneesz avatar slorber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

backspace-disabler's Issues

npm module?

Would be nice to be able to pull this in with npm

ConnectedToTheDOM Regression

I have a bit of a strange use case that no longer works after #4 went in.

In my application, I have a parent window that spawns secondary windows. The parent window then disables these secondary windows by passing the secondary window references to BackspaceDisabler.disable(secondaryWindow). The issue is that when I hit backspace in a form element (or content-editable) in the secondary window, the event is prevented. This is because the document that is found by traversing node.parentNode in connectedToTheDom (the secondary window's document) is a different reference than the global document (the primary window's document).

One potential fix is to check the nodeType of the node instead of checking the reference against the document global. If node.nodeType === Node.DOCUMENT_NODE, we've found the closest parent document.

If this seems acceptable then I can submit a pull request for it.

cc @fresheneesz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.