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
Validation fail on multiple number input #418
Comments
I'll try to implement that feature just by setting valueGetter and valueSetter and a validation.format regexp as workaroud. Nice component in any cases :) |
Ok a really had an hard time understanding the problem (sorry for the previous deleted messages). I'll investigate this, type: 'integer' with input: 'text' and a value_separator should work |
After some research I guess you are not using Chrome or you are using a custom 'input' function, because in Chrome, because QueryBuilder uses So what I did is to add a new input type Now the validation is still not working... |
see example: 4d6c44e#diff-5b0e3367cfabe5a0173e80753b827d6cR226 |
OK, it's working perfectly :) Indeed, I don't use Chrome, I prefer Firefox which is open, although less well on some rare aspects. It don't prevent typing pipes into number inputs. Thank you for your very quick fix, that feature will be very useful for my project. |
what do you mean "not documented" ? it's in dependency in the bower/package file and in the readme |
Hi Mistic, I tried to manually override this by replacing QueryBuilder.types[filter.type] in the following snippet with
|
did you really build on dev branch and not on master ? |
i was pulling the contents from cdn earlier (jsdeliver), but wanted to look at the code so copied the standalone from the dev branch to try manually override |
i think i have not built on dev branch. Will try it now |
Oops, yes the jQuery.extendext is documented. I'm just tired on monday I guess. |
Hi Mistic, |
@officiallysameer can you post a jsfiddle, support for multiple values for IN operator of type integer? I'm unable to get this done |
Hi Naveen,
I had built it from the code base. What problem are you facing?
On 9 Jan 2018 05:45, "Naveen D B" <notifications@github.com> wrote:
@officiallysameer <https://github.com/officiallysameer> can you post a
jsfiddle, support for multiple values for *IN* operator of type *integer*?
I'm unable to get this done
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#418 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVC96dCV7Xh1AOLCH5EqKjaQueY1UyDQks5tIv0IgaJpZM4LpLqt>
.
|
Description
If a filter of type number or double is defined, the "in" operator never validate the value if multiple values are defined
Step to reproduce
##Supposed cause
Function QueryBuilder.prototype.validateValueInternal only verify if there is multiple values on select and radio filters
The text was updated successfully, but these errors were encountered: