Dialog has to handle events such as moving or resizing so dialog should be able to accept event handler. > If the dialog can be moved or resized, ensure that these actions must be performable by keyboard users as well as mouse users. [reference](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/dialog_role) Also refer to a similar previous [issue](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/issues/741) about listening to `esc` to dismiss a dialog