hperrin / svelte-material-ui

Svelte Material UI Components
https://sveltematerialui.com/
Apache License 2.0
3.31k stars 285 forks source link

Update Autocomplete for changed options #519

Open romancow opened 1 year ago

romancow commented 1 year ago

Is your feature request related to a problem? Please describe. The autocomplete input does not update when its options change. If you change the value passed to options, then focus the control (without changing the text value), the suggested completions do not update to match the new value passed to it.

Describe the solution you'd like The solution I would like is for the autocomplete input to update its suggested completions when its options prop is updated.

Describe alternatives you've considered I've tried more "manual" ways of forcing it to update when I know options have changed, but it's either been unsuccessful or led to other buggy behavior.

Additional context Not really. Seems pretty straightforward. The component should match the state of the props passed to it