Skip to content

Commit

Permalink
fix to guard agains missing focusManager or when isLoggin is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaci23 committed Nov 7, 2023
1 parent 328cfb9 commit 085bd6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/view/core/BaseView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ end function
'+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function onIsFocusedChange()
if m.global.focusManager.isLogging
if asBoolean(m.global.focusManager.isLogging)
m.log.verbose("m.top.isFocused", m.top.isFocused, mc.dv(m.top))
end if

Expand Down Expand Up @@ -243,7 +243,7 @@ end function
' * @param {boolean} isSelfFocused - if true, then this is the control that is focused, if false, then it is one of the control's parents
' */
function onGainedFocus(isSelfFocused as boolean)
if m.global.focusManager.isLogging
if asBoolean(m.global.focusManager.isLogging)
m.log.info("onGainedFocus", m.top.subType(), isSelfFocused)
end if

Expand Down

0 comments on commit 085bd6d

Please sign in to comment.