-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some FieldDropdown
changes don't fire BlockChange
events
#8556
Comments
Hey @johnnesky: this might be of interest to you. |
@cpcallen @BeksOmega hey I wanted to work on this. |
@abhinavjha0239: Sure, by all means see if you can figure out what's going on. A PR is welcome, but even a comment explaining exactly why it sometimes fails to fire an event would be super useful. |
I've done a little investigation already. The The block has an input called The
The This explains why changing the value from I suggest that we permanently detach the This code change should be applied to the block types Each of these block type definitions will need to have these functions modified: If the Blockly team approves of this proposal, then @abhinavjha0239 is welcome to try implementing it. |
@abhinavjha0239 are you still working on this? If not, I will hand it over to @johnnesky to work on next. |
@rachel-fenichel yeah fine. Please hand it over to @johnnesky |
Check for duplicates
Description
Sometimes changing the value of a
FieldDropdown
results in aBlockChange
event being fired, but other times it does not.Reproduction steps
lists_getIndex
block ("in list ____ get # ___") block to the workspace.WHERE
field from "#" to "last"; observe aBlockChange
event is logged.WHERE
field from "last" to "#"; observe no event is logged.WHERE
field from "#" to "last", then to "# from end", then to "#"; observe that in each case aBlockChange
event is logged.Additional info
I have verified that this is not due to any problem with events being mishandled by the enque / filter / dispatch code in
events/utils.ts
: thefire
function is not being called at all in step 6 above.The text was updated successfully, but these errors were encountered: