Skip to content

.css("--custom") throws TypeError: ret is undefined (3.6.0 → 3.6.1 regression) #5105

Description

@andersk

Description

In jQuery 3.6.0, $element.css("--custom") correctly returned undefined for a custom property that isn’t set. But in jQuery 3.6.1, it crashes with TypeError: ret is undefined.

This breaks the Zulip settings dialog.

This was presumably introduced by #4930 (cc @fecore1 @mgol).

Link to test case

https://codepen.io/anderskaseorg/pen/rNvNZWW

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions