You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.
I have seen below lines of code which was making value to string in every case,
// Normalize label and value
attrs.value = $.trim(attrs.value.toString());
attrs.label = attrs.label && attrs.label.length ? $.trim(attrs.label) : attrs.value
// Bail out if has no value or label, or label is too short
if (!attrs.value.length || !attrs.label.length || attrs.label.length <= this.options.minLength) return
// Bail out if has no value or label, or label is too short
if(typeof attrs.value === 'string')
if (!attrs.value.length || !attrs.label.length || attrs.label.length <= this.options.minLength) return
The problem will be in case of using Angular and Ng - Model as object
Please add support for it, currently we are abel to do the same in create token event
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I have seen below lines of code which was making value to string in every case,
// Normalize label and value
attrs.value = $.trim(attrs.value.toString());
attrs.label = attrs.label && attrs.label.length ? $.trim(attrs.label) : attrs.value
which we can make it to
// Normalize label and value
attrs.value = typeof attrs.value === 'string' ? $.trim(attrs.value.toString()) : attrs.value;
attrs.label = attrs.label && attrs.label.length ? $.trim(attrs.label) : attrs.value
The problem will be in case of using Angular and Ng - Model as object
Please add support for it, currently we are abel to do the same in create token event
The text was updated successfully, but these errors were encountered: