Skip to content

Commit 7e32c97

Browse files
Hide temporary input field from screen readers
1 parent 5079fb1 commit 7e32c97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

highlight-helper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,7 @@ if (isTouchDevice && isWebKit) {
12731273
tempInput.style.fontSize = '16px'; // Prevent page zoom on input focus
12741274
tempInput.inputMode = 'none'; // Don't show keyboard
12751275
tempInput.tabIndex = -1; // Prevent user from tabbing to input
1276+
tempInput.ariaHidden = 'true'; // Hide from screen readers
12761277
const initializeSelection = (event) => {
12771278
if (document.readyState !== 'complete') return setTimeout(initializeSelection, 20);
12781279
if (!tempInput.parentElement) document.body.append(tempInput);

0 commit comments

Comments
 (0)