We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d492e26 commit 1a79bb1Copy full SHA for 1a79bb1
ts/a11y/explorer/KeyExplorer.ts
@@ -304,6 +304,7 @@ export class SpeechExplorer extends AbstractKeyExplorer<string> {
304
305
/**
306
* Programmatically triggers a link if the focused node contains one.
307
+ * @param {number} code The keycode of the last key pressed.
308
*/
309
protected triggerLink(code: number) {
310
if (code !== 13) {
@@ -314,8 +315,7 @@ export class SpeechExplorer extends AbstractKeyExplorer<string> {
314
315
getAttribute('data-semantic-postfix')?.
316
match(/(^| )link($| )/);
317
if (focus) {
- // Works for CHTML only.
318
- node.parentElement.click();
+ node.parentNode.dispatchEvent(new MouseEvent('click'));
319
return true;
320
}
321
return false;
0 commit comments