webscopeio / react-textarea-autocomplete

📝 React component implements configurable GitHub's like textarea autocomplete.
MIT License
451 stars 80 forks source link

Loading Component missing top/left style for first typed char #214

Open anton6 opened 3 years ago

anton6 commented 3 years ago

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
anton6 commented 3 years ago

Looks like it broke during v4.2.3 commit "Improve autocomplete positioning" https://github.com/webscopeio/react-textarea-autocomplete/commit/8310e0abe671414654030c751d8b6cfe6cc01813

jwtong commented 2 years ago

@anton6 Any workarounds that you found?