Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

From value overrides user input (can't set a default value) #1

Closed
ushapax opened this issue Jan 4, 2019 · 2 comments
Closed

From value overrides user input (can't set a default value) #1

ushapax opened this issue Jan 4, 2019 · 2 comments

Comments

@ushapax
Copy link
Contributor

ushapax commented Jan 4, 2019

So it looks like Ion uses the from data attribute as a default value for the single slider. Works for new entries. However, when editing existing entries the range slider is always initialized to the from value instead of the input value. Maybe a bug with Ion?

I got this to work with a check and reset of the input value in the helper js function.

@mattstein
Copy link
Contributor

Thanks @ushapax! Would you mind submitting a PR for that? This repo's in a weird place as it's just a partially completed port of a Craft 2 plugin (that I made to quickly get another project to Craft 3). I should probably point this out somewhere...

@mattstein
Copy link
Contributor

Merged PR, thank you kindly.

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

No branches or pull requests

2 participants