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

Numbers as names in radio/checkboxes cause js error #1249

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

janrembold
Copy link

Numbers as names in radios/checkboxes are valid but cause following error in handleMultiple method. This is an easy fix that converts a number to string.

VM1868:2024 Uncaught TypeError: this.options.multiple.replace is not a function
at Factory.handleMultiple (:2024:53)
at Factory.init (:1992:39)
at new Factory (:1976:17)
at HTMLInputElement. (:1396:31)
at Function.each (jquery.js:362)
at jQuery.fn.init.each (jquery.js:157)
at :1395:82
at Form._withoutReactualizingFormOptions (:1427:20)
at Form._bindFields (:1394:12)
at Factory.bind (:2061:127)

Jan Rembold added 2 commits April 10, 2018 20:46
…f radio is a number

removed unused variable multiple
update version to 2.8.2
@janicev-git
Copy link

Thank you!!!!

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

Successfully merging this pull request may close these issues.

None yet

2 participants