-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Allow data-toggle="dropdown" and form click events to bubble #32942
Closed
Closed
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
40a206f
remove stopPropagation from button click event
caseyjhol 9048cf5
add test for click events
caseyjhol a7c2013
ensure menu can open
caseyjhol 7fc8ee9
test for delegated click events
caseyjhol 160af31
Merge branch 'main' into bubble-click-events
caseyjhol a87e814
Merge branch 'main' into bubble-click-events
caseyjhol cdb5f3c
simplify delegated click event bubble test
caseyjhol 1b4d5dd
rearrange test
caseyjhol 65e254e
ensure button children can open menu
caseyjhol eea7b9c
test to ensure clicking button opens the menu
caseyjhol cdbd74d
check current element and parents
caseyjhol 4a17f62
Merge branch 'main' into bubble-click-events
caseyjhol 2bd7aea
Merge branch 'main' into bubble-click-events
caseyjhol 80bdc9c
allow dropdown form click events to bubble
caseyjhol 8156318
improve menu open tests
caseyjhol d5e67c6
Merge branch 'main' into bubble-click-events
caseyjhol b5f3d91
Merge branch 'main' into bubble-click-events
caseyjhol f08dae5
refactor/add comments
caseyjhol 4572f81
Merge branch 'main' into bubble-click-events
caseyjhol 9396b1b
remove extra test to check if menu is open
caseyjhol bbe928b
remove form test
caseyjhol b12081c
Merge branch 'main' into bubble-click-events
caseyjhol be87106
remove setTimeouts from tests
caseyjhol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rohit2sharma95 I'm concerned that removing the setTimeouts might affect the reliability of the tests. If I remove this section of code (preventing the menu from opening), both the "data-api -> should show and hide a dropdown" and "should open the dropdown when clicking the child element inside
data-bs-toggle="dropdown"
" tests pass. With the setTimeouts, they fail.In any case, I'm eager to get this merged in, so I've gone ahead and removed the setTimeouts, but I urge you to check into it. If you still feel they're not necessary, if you get a chance, I'd love to know the reasoning. Thanks for all your help getting this feature implemented!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, for smooth release please restore
setTimeout
s and rebase your branch 🙂