Skip to content

Conversation

aditya000099
Copy link

changed const autoFocusingTags = /(a|area|input|select|textarea|button|iframe)$/; to const autoFocusingTags = /(a|area|input|select|textarea|button|iframe)(?![\w-])$/;

hacktoberfest

changed const autoFocusingTags = /(a|area|input|select|textarea|button|iframe)$/; to 
const autoFocusingTags = /(a|area|input|select|textarea|button|iframe)(?![\w-])$/;

hacktoberfest
@@ -157,7 +157,7 @@ export const makeNodeFocusable = (node) => {
}
};

const autoFocusingTags = /(a|area|input|select|textarea|button|iframe)$/;
const autoFocusingTags = /(a|area|input|select|textarea|button|iframe)(?![\w-])$/;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This RE still matches tags like meta. What is your addition trying to do? I would think a fix would be anchoring the beginning. For example:

const autoFocusingTags = /^(a|area|input|select|textarea|button|iframe)$/;

@jcfilben jcfilben added the waiting Awaiting response to latest comments label Oct 24, 2023
@jcfilben
Copy link
Collaborator

Hey @aditya000099 just wanted to check in on this PR, are you interested in revisiting it? If not I think we can close this.

@jcfilben
Copy link
Collaborator

Closing due to inactivity. Feel free to re-open

@jcfilben jcfilben closed this Mar 19, 2024
@lukaw3d lukaw3d mentioned this pull request Mar 26, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Awaiting response to latest comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants