The `isOpen` getter was recently removed (in #3824), you need to check `SecondaryToolbar.opened` instead.