mirror of https://github.com/godotengine/godot.git
Accessibility: Re-apply stored name when recreating nodes in _ensure_node
When TabContainer calls accessibility_update_add_related_controls(), it triggers _ensure_node() which creates a new AccessKit node. Since the node pointer was nulled after the previous tree update push, this creates an empty node without any properties. TabBar only sets tab properties (name, bounds) when accessibility_item_dirty is true. After initial setup, dirty=false, so recreated nodes would be pushed without names, causing screen readers to announce "page tab" without the tab name. This fix re-applies the stored name (and name_extra_info) when _ensure_node creates a new node, ensuring tab names persist across node recreations.pull/113533/head
parent
fbc9539764
commit
abf7b3c2ee
Loading…
Reference in New Issue