-
Notifications
You must be signed in to change notification settings - Fork 92
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(NcListItem): open _blank link by Enter and allow prevent #5342
Merged
Conversation
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
pulsejet
force-pushed
the
varun/listitem
branch
2 times, most recently
from
March 4, 2024 23:28
3e9de23
to
3a6e079
Compare
4 tasks
Hello? |
ShGKme
reviewed
Mar 7, 2024
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
We're in the rush of the 29 release. Things are a bit busy at the moment, sorry 😔 |
ShGKme
approved these changes
Mar 8, 2024
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.
Thanks!
Works fine with a router link and a native link, with _blank
and _self
, by click and by enter/space, preventable with preventDefault()
.
ShGKme
added
bug
Something isn't working
3. to review
Waiting for reviews
feature: list-item
Related to the list-item component
labels
Mar 8, 2024
susnux
approved these changes
Mar 8, 2024
ShGKme
changed the title
NcListItem: don't explicitly set location
fix(NcListItem): open _blank link by Enter and allow prevent
Mar 8, 2024
/backport to next |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3. to review
Waiting for reviews
bug
Something isn't working
feature: list-item
Related to the list-item component
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.
I don't understand what that line is intended to do.
target=_blank
above from working at allpreventDefault
on the event anymoreThis just makes zero sense to me.My guess is, this is for the keyboard event? (even then, enter always triggers click if
href
is present, which should always be)Regardless, switched that to a explicit trigger.