diff options
Diffstat (limited to 'ext/js/dom/popup-menu.js')
| -rw-r--r-- | ext/js/dom/popup-menu.js | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/ext/js/dom/popup-menu.js b/ext/js/dom/popup-menu.js index 78394c93..33cdd1ae 100644 --- a/ext/js/dom/popup-menu.js +++ b/ext/js/dom/popup-menu.js @@ -17,6 +17,7 @@   */  import {EventDispatcher, EventListenerCollection} from '../core.js'; +import {querySelectorNotNull} from './query-selector.js';  /**   * @augments EventDispatcher<import('popup-menu').EventType> @@ -33,9 +34,9 @@ export class PopupMenu extends EventDispatcher {          /** @type {HTMLElement} */          this._containerNode = containerNode;          /** @type {HTMLElement} */ -        this._node = /** @type {HTMLElement} */ (containerNode.querySelector('.popup-menu')); +        this._node = querySelectorNotNull(containerNode, '.popup-menu');          /** @type {HTMLElement} */ -        this._bodyNode = /** @type {HTMLElement} */ (containerNode.querySelector('.popup-menu-body')); +        this._bodyNode = querySelectorNotNull(containerNode, '.popup-menu-body');          /** @type {boolean} */          this._isClosed = false;          /** @type {EventListenerCollection} */ |