Skip to content

Using an array with addCssClass does not update the classList correctly #231

@binarygit

Description

@binarygit

While using cable_ready's addCssClass with an array of class names, the classList of the element(s) are updated incorrectly.
They are updated, but the class names are separated by a comma (,) instead of a space.

Eg:
Using

add_css_class(selector: '#foo', name: ["btn-warning", "pulsating"])

will update the '#foo' element's classList with btn-warning,pulsating instead of btn-warning pulsating

Additional info:
This error message is shown in the console
warning

Metadata

Metadata

Assignees

Labels

bugjavascriptPull requests that update Javascript code

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions