Skip to content

Conversation

@MartinCupela
Copy link
Contributor

@MartinCupela MartinCupela commented May 22, 2023

🎯 Goal

Fix bug, when clicking item in message input's autocomplete just closes the dropdown without selecting the item.

The blur event's relatedTarget value in Safari is incorrect when clicking on autocomplete item. We cannot therefore decide, whether to close or not the autocomplete dropdown. This fix introduces change that will lead to ignoring the textarea blur event in Safari. That means that user will be able to close the autocomplete dropdown only by selecting the item.

@MartinCupela MartinCupela merged commit af4fb74 into develop May 22, 2023
@MartinCupela MartinCupela deleted the fix/autocomplete-select-in-safari branch May 22, 2023 11:44
@MartinCupela MartinCupela mentioned this pull request May 22, 2023
github-actions bot pushed a commit that referenced this pull request May 22, 2023
## [10.8.1](v10.8.0...v10.8.1) (2023-05-22)

### Bug Fixes

* do not try close message input's autocomplete dropdown on textarea blur ([#2015](#2015)) ([af4fb74](af4fb74))
@github-actions
Copy link

🎉 This PR is included in version 10.8.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants