Closed mkmuduli closed 5 years ago
The problem is with your input container, it is not a native input container. react-autocomlete-input
uses library, which natively evaluates caret position by calling either selectionStart
and selectionEnd
for modern browsers or document.selection.createRange()
for legacy like IE < 11.
Div doesn't support those APIs, therefore you see this error. Try input
or textarea
instead
error is
When pressing # the popup is not triggered.
The idea to use make hashTag Input with auto complete. HashTag string should be bold.
codesandbox link