appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.89k stars 471 forks source link

fix(web): searchbox cursor shifts to end in controlled component #2207

Closed SavvyShah closed 1 year ago

SavvyShah commented 1 year ago

When SearchBox is used as a controlled component, the cursor shifts to the end while typing in between words.

This happens because: props.value is the directly synced value with the input when used as a controlled component.

Notion Card

Loom preview attached in notion comments