acl-services / paprika

🌶 A robust + accessible UI component library for React applications by Galvanize.
MIT License
54 stars 9 forks source link

fix(ListBoxWithTags): FS-3112 Fix focus after select #1274

Closed DanilAgafonov closed 2 years ago

DanilAgafonov commented 2 years ago

Purpose 🚀

ListBoxWithTags crashes after selecting option and typing something in search box. Reason: stale value in lastSelectedOption. This value references non-existing option (because after search there can be completly different list of options)

changeset-bot[bot] commented 2 years ago

🦋 Changeset detected

Latest commit: 90cd180b9a00f8e465400a54f66f6d71307dd603

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------------------- | ----- | | @paprika/list-box-with-tags | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR