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

jQuery dependency #726

Closed
stsrki opened this issue Dec 22, 2021 · 2 comments
Closed

jQuery dependency #726

stsrki opened this issue Dec 22, 2021 · 2 comments

Comments

@stsrki
Copy link

stsrki commented Dec 22, 2021

Hello, first of all, I would like to say you guys have a really good project here.


I'm trying to add autoNumeric into my Blazorise component library, but it seems it will not be so easy as I first thought. Based on the sentence in your readme

autoNumeric is a standalone Javascript library

I would assume autoNumeric uses vanilla JS and does not require any dependency like jQuery. Turns out it isn't exactly true. It even has require("jquery") in the autoNumeric.js. Also based on this #244 I would also assume jquery was already removed a long time ago.


What I want to accomplish is to import autoNumeric as a regular ES6 module. But unless I also use JQuery it will not be possible. Do you guys have any plans to remove it from the dependency?

@AlexandreBonneau
Copy link
Member

Hi @stsrki, are you using the latest version of AutoNumeric, in the next branch?

Indeed, the jQuery dependency has been removed almost 5 years ago.

@stsrki
Copy link
Author

stsrki commented Dec 23, 2021

You're right. I probably fetched some older versions without realizing it. If I build from the next branch jQuery is not found. Thanks.

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

No branches or pull requests

2 participants