Skip to content

Commit 8598549

Browse files
authored
CustomSelect: disable virtualFocus to fix issue for screenreaders (#58585)
* CustomSelect: disable `virtualFocus` to fix issue for screen readers in Safari * Update changelog
1 parent fd98f90 commit 8598549

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/components/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
- `Tabs`: improve controlled mode focus handling and keyboard navigation ([#57696](https://github.com/WordPress/gutenberg/pull/57696)).
2626
- `Tabs`: prevent internal focus from updating too early ([#58625](https://github.com/WordPress/gutenberg/pull/58625)).
2727
- Expand theming support in the `COLORS` variable object ([#58097](https://github.com/WordPress/gutenberg/pull/58097)).
28+
- `CustomSelect`: disable `virtualFocus` to fix issue for screenreaders ([#58585](https://github.com/WordPress/gutenberg/pull/58585))
2829

2930
### Enhancements
3031

packages/components/src/custom-select-control-v2/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ export function CustomSelect( {
5656
setValue: ( nextValue ) => onChange?.( nextValue ),
5757
defaultValue,
5858
value,
59+
// fix for Safari bug: https://github.com/WordPress/gutenberg/issues/55023#issuecomment-1834035917
60+
virtualFocus: false,
5961
} );
6062

6163
const { value: currentValue } = store.useState();

0 commit comments

Comments
 (0)