Skip to content

[range] form field sets to min when default value is 0 (zero) #24938

@thednp

Description

@thednp

Steps to reproduce the issue

Anywhere in your template/module options make a new field

<field 
	name="testrange" 
	type="range" 
	label="Test Range" 
	description="Test range desc" 
	min="-10" 
	max="10"
	step="0.1" 
	class="" 
	default="0"
/>

range-field-issue-code

Check module/template admin form

Expected result

Expecting the form play nice with 0 (zero) values and default values.

Actual result

range-issue-front-end

System information (as much as possible)

Joomla 3.9.6
php 7.3.4
mysqlnd 5.0.12-dev

Additional comments

Possibly related to #8928, I tested the number field with same settings, all good. Going to settle there for now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions