Support

Account

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']
    			));