Block with mutation triggers "Cannot read property 'RTL' of undefined"

140 views
Skip to first unread message

Austin Bart

unread,
Jul 1, 2016, 3:41:11 AM7/1/16
to Blockly
I'm creating a simple block for making times ("4:00pm") that can also have a "now" option. To accomplish this, I'm using the mutation settings. However, my Blockly must be a little rusty because I can't figure out what's wrong with it. I've modeled the code after the builtin "math_number_property" block, except I'm dynamically creating drop-downs instead of value inputs.

http://pastebin.com/raw/LW12cRQr

With the code above, it works fine until you try and change the current time from "now" to anything else, in which case it triggers the following error.


Any ideas? Am I doing something wrong with how I dynamically instantiate the dropdowns?

Thanks,
~Cory

Adrian Buzea

unread,
Jul 1, 2016, 5:41:42 AM7/1/16
to Blockly
Hi,

I've tried your code and it works fine on my end. 

Austin Bart

unread,
Jul 1, 2016, 2:02:28 PM7/1/16
to Blockly
Indeed, updating to the latest blockly seems to have fixed the problem. I hadn't updated since the start of the summer.

Although the pull has thrown my toolbox to the bottom right of my screen, so I'm not done yet. Still, thanks for the confirmation, Adrian!

~Cory
Reply all
Reply to author
Forward
0 new messages