Skip to content

Fix issue on focus element when has preselected values#1

Open
bmarcelino-fe wants to merge 1 commit into
masterfrom
remove-focus-element-when-has-preselected-values
Open

Fix issue on focus element when has preselected values#1
bmarcelino-fe wants to merge 1 commit into
masterfrom
remove-focus-element-when-has-preselected-values

Conversation

@bmarcelino-fe
Copy link
Copy Markdown
Owner

@bmarcelino-fe bmarcelino-fe commented Feb 7, 2024

This PR is for fixing an issue on VirtualSelect when using popup mode and preselected values make the focus go to the dropdown when entering the screen.

What was happening

  • When using popup mode and preselected values make the focus go to the dropdown when entering the screen;

What was done

  • Added a validation on method afterHidePopper to only focus on element when doesn't have initial value or has values, in order to prevent the focus when is entering on a screen with preselected values;

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants