You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
beforestart gets fired before a selection takes place, inside of the event-handler you can decide whether a selection should be initiated or not. In your case you only want the user to make a selection if the target-element (where the user clicked) is not a input-element.
You're welcome! I have to admit that the event-section in the docs isn't very extensive - I've just added a few inline-comments to the event-examples to show how each event could be used :)
Do you want to request a feature or report a bug?
A bug
What is the current behavior?
When using selection-js, any input field within the selection boundary cannot be focused on.
If the current behavior is a bug, please provide the steps to reproduce and create a JSFiddle.
I created a codepen (couldn't get the jsfiddle to work) to illustrate the issue:
https://codepen.io/au_re/project/editor/ZbWWrj
What is the expected behavior?
Ideally you should still be able to focus input fields inside the selection boundary, or selectable elements
Your environment:
The text was updated successfully, but these errors were encountered: