* fix(modal_root): Read type from props, not from component
* fix(status_list): Do not user event.path
const article = (() => {
switch (e.key) {
case 'PageDown':
- return e.nativeEvent.path[0].nodeName === 'ARTICLE' && e.nativeEvent.path[0].nextElementSibling;
+ return e.target.nodeName === 'ARTICLE' && e.target.nextElementSibling;
case 'PageUp':
- return e.nativeEvent.path[0].nodeName === 'ARTICLE' && e.nativeEvent.path[0].previousElementSibling;
+ return e.target.nodeName === 'ARTICLE' && e.target.previousElementSibling;
case 'End':
return this.node.querySelector('[role="feed"] > article:last-of-type');
case 'Home':
}
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;