Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
thednp opened this issue May 17, 2019 · 2 comments
Closed

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

thednp opened this issue May 17, 2019 · 2 comments

Comments

@thednp
Copy link
Contributor

thednp commented May 17, 2019

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.

@SharkyKZ
Copy link
Contributor

Test PR #24939 please.

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/24938

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants