ux
ux copied to clipboard
[WIP][Autocomplete] Adding morph support for Turbo & overhauling process
| Q | A |
|---|---|
| Bug fix? | yes |
| New feature? | yes |
| Issues | Fix #1500 |
| License | MIT |
This is WIP. The goal is to, during morphing, do both of the following:
- Prevent morphing from removing any manual DOM changes made by TomSelect (which we want to keep)
- Notice any changes (e.g. the underlying
<option>elements change) that would require a TomSelect "reset" and doing that reset.
There are lot of permutations to get right, especially with (2), like making sure that both single & multiple <select> work as well as TomSelect used on an <input>.
Cheers!