[PER-10229] Make selected value non-clickable #854
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A native HTML select cannot be triggered programatically to open, because this would post a security risk, so clicking on the selected value that is not part of the select element won't make the options dropdown open. In order to make the selected value look like part of the whole select flow, an absolute positioning is needed, which was already implemented. The issue was that the element would still be clickable, so cancelling the pointer events will make the click trigger go through it, directly to the select element.
Issue: PER-10229 Archive-member-invite, access-role-dropdown, click area buggy
STEPS TO TEST:
EXPECTED: The select dropdown should open
EXPECTED: The option selected in the dropdown is reflected in the list of pending users