blockly > Gesture > currentDropdownOwner
Gesture.currentDropdownOwner property
The owner of the dropdownDiv when this gesture first starts. Needed because we'll close the dropdown before fields get to act on their events, and some fields care about who owns the dropdown.
Signature:
currentDropdownOwner: Field | null;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`currentDropdownOwner` stores the initial owner of the dropdown when a gesture begins."],["This property is essential because dropdowns are closed before field events are processed, and some fields need to know the dropdown's owner."],["It helps ensure that fields can react appropriately even after the dropdown is closed during a gesture."]]],["The `currentDropdownOwner` property within the `Gesture` class stores the owner of the dropdownDiv at the start of a gesture. This information, which can be a `Field` or `null`, is crucial because dropdowns are closed before fields handle their events. Certain fields require knowledge of the dropdown's original owner to function correctly.\n"]]