Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Number-typed values are deprecated for jQuery.fn.css #1788

Open
JamoCA opened this issue Nov 12, 2020 · 0 comments
Open

Fix for Number-typed values are deprecated for jQuery.fn.css #1788

JamoCA opened this issue Nov 12, 2020 · 0 comments

Comments

@JamoCA
Copy link

JamoCA commented Nov 12, 2020

When using FlexSlider 2.7.2 with jQuery 3 + Migrate, there's a "Number-typed values are deprecated for jQuery.fn.css" warning.

Solution: Always pass string values to .css(), and explicitly add units where required. For example, use $.css("line-height", "2") to specify 200% of the current line height or $.css("line-height", "2px") to specify pixels. When the numeric value is in a variable, ensure the value is converted to string, e.g. $.css("line-height", String(height)) and $.css("line-height", height+"px").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant