Skip to content

Conversation

risen228
Copy link
Contributor

@risen228 risen228 commented Jul 12, 2023

Currently, when using Link component, if you try to open a link in a new tab, the behavior will be unexpected and default navigation will occur in the current tab. The same applies to links with target="_blank" attribute.

This PR adds a new logical steps, checking for target attribute and the mod keys (cmd, ctrl, alt, shift). When the key is pressed - the default a behavior will be used (if not default prevented by used).

@risen228 risen228 changed the title [Fix] Skip navigation on modified keys events [Fix] Skip navigation for modified keys events and some "target" values Jul 12, 2023
@sergeysova sergeysova requested a review from Kelin2025 July 14, 2023 08:13
@Kelin2025 Kelin2025 merged commit 84dd970 into atomic-router:main Jul 31, 2023
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.

3 participants