Closed josefarias closed 2 months ago
Closes https://github.com/josefarias/hotwire_combobox/issues/180
Relying on callbacks kicked off by server streams is prone to race conditions when actions happen in rapid sequence.
In the case of the linked issue, we were calling the this._selectOnQuery branch after locking in selection:
this._selectOnQuery
if () { // ... } else if (inputType && inputType !== "hw:lockInSelection") { if (delay) await sleep(delay) this._selectOnQuery(inputType) }
This fix works but I want to clean it up before merging
Closes https://github.com/josefarias/hotwire_combobox/issues/180
Relying on callbacks kicked off by server streams is prone to race conditions when actions happen in rapid sequence.
In the case of the linked issue, we were calling the
this._selectOnQuery
branch after locking in selection:This fix works but I want to clean it up before merging