fix(tui): keep runtime controls interactive
This commit is contained in:
@@ -49,6 +49,12 @@ export class PickerMenu<T> {
|
||||
paddingRight: 1,
|
||||
backgroundColor: RGBA.defaultBackground(),
|
||||
visible: false,
|
||||
onMouseDown: (event) => {
|
||||
if (event.button !== 0) return
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
this.renderer.clearSelection()
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
@@ -138,6 +144,7 @@ export class PickerMenu<T> {
|
||||
if (event.button !== 0) return
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
this.renderer.clearSelection()
|
||||
this.selected = index
|
||||
this.options.onSelect?.(item)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user