Skip to content

Cannot set properties of undefined (setting 'nodeToRestore')  #3954

@Lingareddyvinitha

Description

@Lingareddyvinitha

🐛 Bug Report

When we try to open useOverlays from @react-aria packages

🤔 Expected Behavior

When upgrading to React version 18 with strict mode enabled, some UI elements such as pickers and Overlays may display all items

😯 Current Behavior

When upgrading to React version 18 with strict mode enabled, some UI elements such as pickers and Overlays may experience crashes and errors.

image

Our packages

    "@react-aria/button": "3.6.1",
    "@react-aria/checkbox": "3.5.1",
    "@react-aria/combobox": "3.4.1",
    "@react-aria/dialog": "3.3.1",
    "@react-aria/focus": "3.8.0",
    "@react-aria/i18n": "3.6.0",
    "@react-aria/interactions": "3.12.0",
    "@react-aria/link": "3.3.3",
    "@react-aria/listbox": "3.6.1",
    "@react-aria/menu": "3.6.1",
    "@react-aria/overlays": "3.10.1",
    "@react-aria/radio": "3.3.1",
    "@react-aria/select": "3.8.1",
    "@react-aria/separator": "3.2.3",
    "@react-aria/table": "3.4.1",
    "@react-aria/tabs": "3.3.1",
    "@react-aria/textfield": "3.7.1",
    "@react-aria/tooltip": "3.3.1",
    "@react-aria/utils": "3.13.3",
    "@react-aria/virtualizer": "3.5.0",
    "@react-spectrum/progress": "3.3.1",
    "@react-spectrum/provider": "3.5.1",
    "@react-spectrum/text": "3.3.1",
    "@react-spectrum/theme-default": "3.3.3",
    "@react-spectrum/utils": "3.7.3",
    "@react-stately/collections": "3.4.3",
    "@react-stately/data": "^3.6.1",
    "@react-stately/menu": "3.4.1",
    "@react-stately/overlays": "3.4.1",
    "@react-stately/radio": "3.6.0",
    "@react-stately/select": "3.3.2",
    "@react-stately/table": "3.4.0",
    "@react-stately/tabs": "3.2.1",
    "@react-stately/tooltip": "3.2.1",
    "@react-stately/tree": "3.3.3"
    

devongovett
Tom Schindl
Aaron Hardy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions