Files
blockly/packages
Sheita 2f1acb3ef1 fix(blocks): use static tooltip for controls_ifelse block (#9897)
The controls_ifelse block was using the controls_if_tooltip dynamic
extension, which reads this.elseifCount_ and this.elseCount_ set by
the controls_if_mutator. Since controls_ifelse has no mutator, both
counts are undefined and the extension always returned TOOLTIP_1 (for
a simple if), instead of TOOLTIP_2 (for if/else).

The static tooltip already declared on the block was unreachable
because of a typo (BKYCONTROLS_IF_TOOLTIP_2 was missing the underscore
after BKY) and would have been overridden by the extension anyway.

Fix the message key typo and drop the extension so the static
TOOLTIP_2 string is displayed instead.

Fixes #9813

Signed-off-by: sheitabrk <44614193+sheitabrk@users.noreply.github.com>
2026-05-19 08:11:16 -07:00
..
2026-05-18 13:18:12 -07:00