You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Observed behaviour: You should notice the one you have highlighted has the whole word highlighted now, and the input value change as well (but the suggestions don't update to reflect this).
Expected behaviour: Not quite sure, but I feel like it should behave the same as key up/down and not update the input value. Maybe valueBeforeUpDown should not be updated if it's via mouseevent.
Let me know if you think this is a bug or not, or maybe an unimportant edge case. I am doing some extra stuff on mouseenter/leave of each suggestion, so it's quite noticeable for me.
Since it's null now, it grabs the input value instead of the correct previous value. const renderSuggestionData = { query: (valueBeforeUpDown || value).trim() };
If onSuggestionFocused is implemented, this could be squashed at the same time.
The text was updated successfully, but these errors were encountered:
Not sure if this is a bug or intended behavior, but it seems odd to me. You can see it in your codepen here: http://codepen.io/moroshko/pen/PZWbzK
Focus on the input field
Type
c
, and wait for suggestions to appearArrowDown to any option
Mouseover/move over the suggestion list
Observed behaviour: You should notice the one you have highlighted has the whole word highlighted now, and the input value change as well (but the suggestions don't update to reflect this).
Expected behaviour: Not quite sure, but I feel like it should behave the same as key up/down and not update the input value. Maybe valueBeforeUpDown should not be updated if it's via mouseevent.
Let me know if you think this is a bug or not, or maybe an unimportant edge case. I am doing some extra stuff on mouseenter/leave of each suggestion, so it's quite noticeable for me.
Caused by a combo of:
onMouseLeave: this.resetFocusedSuggestion,
...
resetFocusedSuggestion = () => { this.props.updateFocusedSuggestion(null, null); };
Since it's null now, it grabs the input value instead of the correct previous value.
const renderSuggestionData = { query: (valueBeforeUpDown || value).trim() };
If onSuggestionFocused is implemented, this could be squashed at the same time.
The text was updated successfully, but these errors were encountered: