webscopeio/react-textarea-autocomplete

Loading Component missing top/left style for first typed char

Opened this issue · 2 comments

When unresolved promise is returned by dataProvider (for example an async call over api to fetch suggestions), the loading component has missing top/left styles to position the loading component next to the carrot for the first character typed.

As a result the loading indicator is at the bottom of the textarea as per screenshot below:

Screenshot 2021-03-23 at 12 42 16

When you start typing the next characters however it seems to correct itself and adds top/left styles to the loading component. So only first typed char has this problem.

Screenshot 2021-03-23 at 12 45 45

Looks like it broke during v4.2.3 commit "Improve autocomplete positioning" 8310e0a

@anton6 Any workarounds that you found?