Skip to content

minmax slider with configured step rounds values before setting them on change #2491

Description

@lubojr

Bug Description

  1. When using minmax format with step precision > 2 decimal places (e.g. step: 0.0005), values are rounded to 2 decimals on mount. This is an upstream issue to-be-resolved in fix: apply round attribute before setting initial pointer values mzusin/toolcool-range-slider#25 but until it gets merged (if), I will prepare a PR fixing this in jsonform.
  2. Switching anyOf schema branches in eox-jsonform leaks values from previous branch instead of resetting to branch schema defaults when values exceed bounds.

Expected Behavior

  • Slider keep precision based on schema step.
  • Switching branches resets out-of-bound values to the new branch defaults.

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjsonform

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions