Skip to content

Conversation

IamFlok
Copy link

@IamFlok IamFlok commented Nov 25, 2024

Bug: Select an option from the autocomplete and close it. The input field is updated accordingly. Then click inside the input field and press backspace to update the input's value. The autocomplete panel opens, but the selected option is not updated yet. Pressing another backspace triggers the update.

Problem and fix:
When the _handleInput function is called, panelOpen is still false, causing the selected option to not update correctly. The _openPanelInternal function needs to be called to ensure the panel is open before processing the selected option logic.

…on backspace

Bug: Select an option from the autocomplete and close it. The input field is updated accordingly. Then click inside the input field and press backspace to update the input's value. The autocomplete panel opens, but the selected option is not updated yet. Pressing another backspace triggers the update.

Problem and fix:
When the `_handleInput` function is called, `panelOpen` is still `false`, causing the selected option to not update correctly. The `_openPanelInternal` function needs to be called to ensure the panel is open before processing the selected option logic.
@IamFlok IamFlok requested a review from a team as a code owner November 25, 2024 07:51
@IamFlok IamFlok requested review from amysorto and crisbeto and removed request for a team November 25, 2024 07:51
Copy link

google-cla bot commented Nov 25, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@IamFlok IamFlok marked this pull request as draft November 25, 2024 10:20
@IamFlok IamFlok closed this by deleting the head repository Apr 22, 2025
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant