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

1.3.0 adding an extra space to form field class attribute #63

Closed
coreybrett opened this issue Apr 29, 2020 · 1 comment
Closed

1.3.0 adding an extra space to form field class attribute #63

coreybrett opened this issue Apr 29, 2020 · 1 comment

Comments

@coreybrett
Copy link

After updating to 1.3.0 I started getting the following JS error on one of my forms.

jQuery.Deferred exception: An invalid or illegal string was specified create/<@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:87915 create@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:87875 D/<@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:9772 Pr@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:92198 Mr@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:97464 Cr/<@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:98908 Cr@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:99006 e.create@http://localhost:5000/_static/libs/filepond-4-7-2/filepond.min.js:9:102387 @http://localhost:5000/_static/sdist/67435b6aa6ce2cf0e35dd319fb7967e9.js:2:402 l@http://localhost:5000/_static/js/libs/jquery-3.3.0.min.js:2:29375 a/</c<@http://localhost:5000/_static/js/libs/jquery-3.3.0.min.js:2:29677

I traced this down to the upgrade from 1.2.0 to 1.3.0

The diff was...

<input class="form-control-file " id="file_" name="file_" type="file"> with 1.3.0
<input class="form-control-file" id="file_" name="file_" type="file"> with 1.2.0

Notice the extra space.

I was able to workaround the issue by adding render_kw={"class": "xyz"} to my form class.

@greyli
Copy link
Member

greyli commented Apr 29, 2020

Thanks for the report, just released 1.3.1 to fix this issue.

@greyli greyli closed this as completed Apr 29, 2020
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

2 participants