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