We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 102a78a commit 78cc90cCopy full SHA for 78cc90c
src/Textarea.jsx
@@ -523,8 +523,8 @@ class ReactTextareaAutocomplete extends React.Component<
523
if (
524
movePopupAsYouType ||
525
(top === null && left === null) ||
526
- // if we have single char - trigger it means we want to re-position the autocomplete
527
- lastToken.length === 1
+ // if the trigger got changed, let's reposition the autocomplete
+ this.state.currentTrigger !== currentTrigger
528
) {
529
const { top: newTop, left: newLeft } = getCaretCoordinates(
530
textarea,
0 commit comments