unselectable

1.0.0 • Public • Published

unselectable unstable

Make sure element is unselectable.

npm install unselectable

let unselectable = require('unselectable')
 
//make element unselectable
let selectable = unselectable(el)
 
//reset element selectable behaviour
selectable(el)

It affects any known method to disable selection on an element: user-select: none, user-drag: none, touch-callout: none, unselectable="on" attribute, prevent selectstart event.

Credits

© 2017 Dima Yv. MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i unselectable

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • dfcreative