infor-design / enterprise-wc

Enterprise-grade web component library for the Infor Design System
Apache License 2.0
27 stars 26 forks source link

IdsSlider: Custom Max/Min not reflected on the slider #2721

Open stephif8 opened 1 month ago

stephif8 commented 1 month ago

Describe the bug After setting new max/min, the slider displays the default values at the ends of the slider and not the new max/min. Note: this issue only occurs when the max and min attributes are set to variables, it works when we set them to hardcoded values

To Reproduce Steps to reproduce the behavior:

  1. Set max/min attributes to variables of any number
  2. View slider
  3. Code used:
    <ids-slider [vertical]="true" max="{{ max }}" min="{{ min }}" type="range"></ids-slider>

Expected behavior The numbers at the ends of the slider should display the new max and min.

Version ids-enterprise: v4.93.1

Screenshots Slider max:min

Platform Infor Application/Team Name: Birst OS Version: macOS Sonoma v14.6 Browser Name: Chrome Browser Version: 127.0.6533.100 (Official Build) (x86_64)

Additional context We're developing a widget in Portal and the ids slider was added to a modal page.

tmcconechy commented 3 weeks ago

@stephif8 The "variables" are done with angular or some other framework?

stephif8 commented 3 weeks ago

@tmcconechy Yes, we're using Angular - the max/min are properties of the component class.