File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
packages/compass-crud/src/components Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -94,12 +94,7 @@ const BulkDeleteModal: React.FunctionComponent<BulkDeleteModalProps> = ({
9494
9595 const exportButtonId = useId ( ) ;
9696 return (
97- < Modal
98- initialFocus = { `#${ exportButtonId } ` }
99- setOpen = { onCancel }
100- open = { open }
101- data-testid = "bulk-delete-modal"
102- >
97+ < Modal setOpen = { onCancel } open = { open } data-testid = "bulk-delete-modal" >
10398 < ModalHeader
10499 title = { `Delete ${ documentCount ?? '' } document${
105100 documentCount === 1 ? '' : 's'
@@ -118,6 +113,7 @@ const BulkDeleteModal: React.FunctionComponent<BulkDeleteModalProps> = ({
118113 onClick = { onExportToLanguage }
119114 data-testid = "export-button"
120115 id = { exportButtonId }
116+ autoFocus
121117 >
122118 Export
123119 </ Button >
Original file line number Diff line number Diff line change @@ -405,8 +405,7 @@ export default function BulkUpdateModal({
405405 open = { isOpen }
406406 setOpen = { closeBulkUpdateModal }
407407 data-testid = "bulk-update-modal"
408- contentClassName = { enablePreview ? modalContentStyles : undefined }
409- initialFocus = { `#${ bulkUpdateUpdateId } .cm-content` }
408+ className = { enablePreview ? modalContentStyles : undefined }
410409 >
411410 < ModalHeader title = { modalTitleAndButtonText } subtitle = { ns } />
412411 < ModalBody >
@@ -441,6 +440,7 @@ export default function BulkUpdateModal({
441440 onBlur = { ( ) => ( { } ) }
442441 annotations = { annotations }
443442 minLines = { 12 }
443+ autoFocus
444444 />
445445
446446 < div className = { bannerContainerStyles } >
You can’t perform that action at this time.
0 commit comments