Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix update cps-autocomplete component value #408

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

korel-san
Copy link
Collaborator

@korel-san korel-san commented Oct 17, 2024

This pull request introduces the following updates to the CpsAutocompleteComponent:

onBlur Method Update:

Modified the onBlur method to call _confirmInput instead of _closeAndClear when the component is not opened. This change ensures that input confirmation logic is executed instead of simply closing and clearing the input.

Value Reset Logic Enhancement:

Enhanced the logic for resetting the value in the component. Now, the value is only reset if the inputText has been changed by the user and does not match the current value label. This prevents unnecessary value resets and ensures that the component's state remains consistent with user input.
These changes improve the component's behavior by refining input handling and ensuring more accurate state management.

@korel-san korel-san self-assigned this Oct 17, 2024
@korel-san korel-san added the bug Something isn't working label Oct 17, 2024
@korel-san korel-san force-pushed the fix/update-cps-autocomplete-component-value branch from 3b474da to a15268c Compare October 17, 2024 04:54
@korel-san korel-san merged commit 3f50715 into master Oct 18, 2024
1 check passed
@korel-san korel-san deleted the fix/update-cps-autocomplete-component-value branch October 18, 2024 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants