Skip to content

Exception when using css function with an array as argument #357

@doberkofler

Description

@doberkofler

Description

After having upgraded to jquery 3.5.1 and jquery-migrate 3.3.0, using the css function with an array as argument does throw an exception.

$('div').css(['classA', 'classB']);

Uncaught TypeError: e.replace is not a function
at X (jquery.min.js:2)
at Function.style (jquery.min.js:2)
at jquery.min.js:2
at $ (jquery.min.js:2)
at s.fn.init.css (jquery.min.js:2)
at s.fn.init.s.fn.css (jquery-migrate.js:482)
at String. (jquery-migrate.js:475)
at Function.each (jquery.min.js:2)
at s.fn.init.s.fn.css (jquery-migrate.js:474)

Link to test case

https://codesandbox.io/s/mutable-pond-7tcrd?file=/src/index.js:74-109

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions