Closes the specified menu item after a delay.
(item: MenuItemPattern<V>)
| 264 | |
| 265 | /** Closes the specified menu item after a delay. */ |
| 266 | private _closeItem(item: MenuItemPattern<V>) { |
| 267 | this._clearOpenTimeout(); |
| 268 | |
| 269 | if (!this._closeTimeout) { |
| 270 | this._closeTimeout = setTimeout(() => { |
| 271 | item.close(); |
| 272 | this._closeTimeout = undefined; |
| 273 | }, this.inputs.expansionDelay()); |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | /** Opens the specified menu item after a delay. */ |
| 278 | private _openItem(item: MenuItemPattern<V>) { |
no test coverage detected