Skip to content

Commit

Permalink
[bugfix] in mix-mode, when pressing the ENTER key when typing non-t…
Browse files Browse the repository at this point in the history
…ag text, there should be no tag entering edit-mode and also, entering edit-mode should should be allowed when the `a11y.focusableTags` setting it set to `true` and also the currently focusable element is a tag. (fixes #1331, fixes #1329)
  • Loading branch information
yairEO committed Apr 28, 2024
1 parent 69eb547 commit dbd7d77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parts/events.js
Expand Up @@ -298,7 +298,9 @@ export default {
return
}

setTimeout(this.editTag.bind(this), 0, focusedElm);
if( _s.a11y.focusableTags && isNodeTag.call(this, focusedElm) )
setTimeout(this.editTag.bind(this), 0, focusedElm)

break;
}

Expand Down

0 comments on commit dbd7d77

Please sign in to comment.