Skip to content

Commit

Permalink
fix(react): editor missing accessible name
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Aug 20, 2024
1 parent 095ed57 commit 99e694d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ function newEditorState(
return EditorState.create({
doc: content,
extensions: [
EditorView.contentAttributes.of({ 'aria-label': 'Editor' }),
EditorView.domEventHandlers({
scroll: debounce((_event, view) => {
onScrollRef.current?.({ left: view.scrollDOM.scrollLeft, top: view.scrollDOM.scrollTop });
Expand Down

0 comments on commit 99e694d

Please sign in to comment.