Skip to content
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
merged 1 commit into from
Mar 8, 2024

Conversation

pulsejet
Copy link
Contributor

@pulsejet pulsejet commented Mar 4, 2024

I don't understand what that line is intended to do.

  1. It prevents target=_blank above from working at all
  2. You can't call preventDefault on the event anymore

This 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.

@pulsejet pulsejet force-pushed the varun/listitem branch 2 times, most recently from 3e9de23 to 3a6e079 Compare March 4, 2024 23:28
@pulsejet pulsejet requested review from susnux and ShGKme March 4, 2024 23:52
@pulsejet
Copy link
Contributor Author

pulsejet commented Mar 7, 2024

Hello?

@susnux susnux requested review from skjnldsv and Pytal March 7, 2024 16:42
Signed-off-by: Varun Patil <varunpatil@ucla.edu>
@pulsejet pulsejet requested a review from ShGKme March 7, 2024 21:41
@skjnldsv
Copy link
Contributor

skjnldsv commented Mar 7, 2024

Hello?

We're in the rush of the 29 release. Things are a bit busy at the moment, sorry 😔

Copy link
Contributor

@ShGKme ShGKme left a 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 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
@ShGKme ShGKme added this to the 8.10.0 milestone Mar 8, 2024
@ShGKme ShGKme changed the title NcListItem: don't explicitly set location fix(NcListItem): open _blank link by Enter and allow prevent Mar 8, 2024
@ShGKme ShGKme merged commit 4bb2677 into master Mar 8, 2024
18 checks passed
@ShGKme ShGKme deleted the varun/listitem branch March 8, 2024 10:03
@ShGKme
Copy link
Contributor

ShGKme commented Mar 8, 2024

/backport to next

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants