Skip to content

Conversation

@aasandei-vsp
Copy link
Contributor

@aasandei-vsp aasandei-vsp commented Dec 8, 2025

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:

  1. Create a new account or log in with a new one
  2. Click the arrow to expand the archive settings in the left menu
  3. Click "Archive members"
  4. Click "Add member"
  5. Click on the pre-selected value "Viewer"
    EXPECTED: The select dropdown should open
  6. Select an option different from "Viewer"
  7. Add an email and click "Ok"
  8. Go to pending members
    EXPECTED: The option selected in the dropdown is reflected in the list of pending users

@codecov
Copy link

codecov bot commented Dec 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 47.12%. Comparing base (6eae006) to head (fd86124).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #854      +/-   ##
==========================================
- Coverage   47.13%   47.12%   -0.01%     
==========================================
  Files         372      372              
  Lines       11495    11495              
  Branches     1912     1912              
==========================================
- Hits         5418     5417       -1     
- Misses       5895     5896       +1     
  Partials      182      182              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cecilia-donnelly cecilia-donnelly force-pushed the PER-10229-click-access-role-dropdown branch from 076c093 to 8bad0a3 Compare December 12, 2025 20:41
Copy link
Member

@omnignorant omnignorant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works as described. however, I didn't know this was a problem? is it broken on prod?

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
@aasandei-vsp aasandei-vsp force-pushed the PER-10229-click-access-role-dropdown branch from 8bad0a3 to fd86124 Compare December 15, 2025 10:31
@aasandei-vsp aasandei-vsp merged commit 3f01b5e into main Dec 15, 2025
8 checks passed
@aasandei-vsp aasandei-vsp deleted the PER-10229-click-access-role-dropdown branch December 15, 2025 10:36
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.

4 participants