Accessability fixes (#4432)
* fix(modal_root): Read type from props, not from component * fix(status_list): Do not user event.path
This commit is contained in:
committed by
Eugen Rochko
parent
3d378ed0b4
commit
634b71ed1d
@ -53,7 +53,7 @@ export default class ModalRoot extends React.PureComponent {
|
||||
}
|
||||
|
||||
componentDidUpdate (prevProps) {
|
||||
if (!this.type && !!prevProps.type) {
|
||||
if (!this.props.type && !!prevProps.type) {
|
||||
this.getSiblings().forEach(sibling => sibling.removeAttribute('inert'));
|
||||
this.activeElement.focus();
|
||||
this.activeElement = null;
|
||||
|
Reference in New Issue
Block a user