Fix null dereferencing issue for buttons
This commit is contained in:
@ -66,6 +66,7 @@ namespace brick {
|
||||
|
||||
//% hidden
|
||||
_update(curr: boolean) {
|
||||
if (curr === null) return
|
||||
if (this._isPressed == curr) return
|
||||
this._isPressed = curr
|
||||
if (curr) {
|
||||
|
Reference in New Issue
Block a user