Skip to content

[Bug]: Max does not work #60

@briodan

Description

@briodan

Current Behavior

when setting the max option in the card config, the card allows the value to be set higher then max value.

Expected Behavior

when sliding up i expect the value to stop at what was set under the max setting.
in my case TV volume can not be set above 20.

Steps To Reproduce

add the following card code

type: custom:my-slider-v2
entity: media_player.living_room_tv_2
vertical: true
styles:
  card:
    - height: 182px
    - width: 110px
  min: 1
  max: 20
  showMin: true
  disableScroll: true
layout_options:
  grid_columns: 1
  grid_rows: 3

slide volume and observe setting change on the device

Environment

- OS: HAOS 12.1
- Node:
- Version: current
- Hassio: 2024.9.3

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions