Setting isEnabled on a Checkbox now errors out, crashing our GUI

We tried updating to beta 6 but our Babylon UI entirely broke. :sweat_smile:

It seems like the culprit is the Checkbox. We didn’t change any of our code, but the crash seems to be coming from setting isEnabled on the checkbox.

I took your basic Checkbox playground example and added an isEnabled = true on line 44

Using GUI slider | Babylon.js Playground (

Here it is without that line of code, working: Using GUI slider | Babylon.js Playground (

You can see this produces an error now, whereas before on beta-2 it didn’t.

Any help on this would be appreciated!


Pinging @DarraghBurke - any change made to the checkbox code in the GUI lib (outside of the GUI Editor)?

Quick update - there seems to be an issue when adding a disabled element. Changing the order (isEnabled after adding) works:

Using GUI slider | Babylon.js Playground (

I’ll keep on investigating.

** Edit **

Fix found, PR - [GUI] make sure host exists before running code on host by RaananW · Pull Request #11940 · BabylonJS/Babylon.js (