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
I am using the delocalize gem, which works fine when checking numericality and setting ClientSideValidations::Config.number_format_with_locale = true, but when performing subsequent checks, i.e. less_than_or_equal_to, only the input val gets converted according to the local settings, but the check_value does not, which causes the validation to fail.
I have copied the assets to my local asset folder and made a simple workaround:
check_value = check_value.replace(new RegExp("" + ClientSideValidations.number_format.delimiter, 'g'), "").replace(new RegExp("" + ClientSideValidations.number_format.separator, 'g'), ".");
The text was updated successfully, but these errors were encountered:
Hi,
I am using the delocalize gem, which works fine when checking numericality and setting ClientSideValidations::Config.number_format_with_locale = true, but when performing subsequent checks, i.e. less_than_or_equal_to, only the input val gets converted according to the local settings, but the check_value does not, which causes the validation to fail.
I have copied the assets to my local asset folder and made a simple workaround:
check_value = check_value.replace(new RegExp("" + ClientSideValidations.number_format.delimiter, 'g'), "").replace(new RegExp("" + ClientSideValidations.number_format.separator, 'g'), ".");
The text was updated successfully, but these errors were encountered: