I have a certain situation in an application where we have a content editable div as a search bar. The search bar is special in that we highlight special search terms as the user types. To keep track of cursor positions as the user types we deal with text selection of the document.
When you enable a draw tool and the hooks are added there is a line that L.DomUtil.disableTextSelection. This prevents the special content editable div from receiving text select start events.
I think this is a bug. I think text selection should only be disabled on the map itself and not the entire DOM document.
This also may be a bug with L.DomUtil.disableTextSelection for leaflet
I have a certain situation in an application where we have a content editable div as a search bar. The search bar is special in that we highlight special search terms as the user types. To keep track of cursor positions as the user types we deal with text selection of the document.
When you enable a draw tool and the hooks are added there is a line that
L.DomUtil.disableTextSelection
. This prevents the special content editable div from receiving text select start events.I think this is a bug. I think text selection should only be disabled on the map itself and not the entire DOM document.
This also may be a bug with
L.DomUtil.disableTextSelection
for leaflet