Home › Forums › Bug Reports › Range field broken when using decimals › Reply To: Range field broken when using decimals
Hi guys
Thanks for the bug report.
I’ve just replicated the issue and believe to have found the problem.
The issue is not with the range input, but the number input beside it.
I need to add the ‘step’ attribute to this element also, otherwise, it performs HTML number validation. I’ll have this fixed in the next version.
For now, please edit the file ‘includes/fields/class-acf-field-range.php’ on line 101 and change to:
$html .= acf_get_text_input(array(
'type' => 'number',
'id' => $atts['id'] . '-alt',
'value' => $atts['value'],
'step' => $atts['step']
));
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.