Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Bug: broken regex #15

Closed
robfrancken opened this issue Jan 15, 2018 · 1 comment
Closed

Bug: broken regex #15

robfrancken opened this issue Jan 15, 2018 · 1 comment

Comments

@robfrancken
Copy link

There seems to be an issue depending on the value of a field.

This doesn't work

<input type="radio" name="application_type" value="employer" />
<div class="form-group conditional" data-condition="application_type == 'employer'">

This does work

<input type="radio" name="application_type" value="emploer" />
<div class="form-group conditional" data-condition="application_type == 'emploer'">

Removing the 'y' fixes the problem.

VM6302:1 Uncaught SyntaxError: Unexpected string
    at HTMLDivElement.<anonymous> (create:1102)
    at Function.each (jquery.min.js:2)
    at r.fn.init.each (jquery.min.js:2)
    at r.fn.init.$.fn.conditionize (create:1061)
    at create:1108
@robfrancken
Copy link
Author

I take it back. I had another field in the form with an ID of 'employer'. Sorry, it's a long form and I completely missed it. Thanks for a great plugin :)

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

No branches or pull requests

1 participant