ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[RangeSlider]: Callstack Exceeded

Open StasStone opened this issue 8 months ago • 2 comments

Bug Description

When specifying end-value attribute value that exceeds the max attribute, an error can be observed in the console.

Affected Component

RangeSlider

Expected Behaviour

No error in the console.

Isolated Example

No response

Steps to Reproduce

  1. Navigate to the playground
  2. Specify end-value attribute greater than max attribute's value

...

Log Output, Stack Trace or Screenshots

Image

Priority

None

UI5 Web Components Version

1.24.17

Browser

Chrome

Operating System

MacOS

Additional Context

No response

Organization

No response

Declaration

  • [x] I’m not disclosing any internal or sensitive information.

StasStone avatar May 12 '25 08:05 StasStone

Hello @SAP/ui5-webcomponents-topic-rl , Please have a look at this issue with the RangeSlider.

Kind regards, 

Georgi

SAP Development Support

Valkanister avatar May 13 '25 07:05 Valkanister

Hello colleagues,

When specifying end-value attribute value that exceeds the max attribute, "Maximum call stack size exceeded" exception is thrown in the console. The issue could be reproduced in the playground of ui5-range-slider in v1.24 - https://sap.github.io/ui5-webcomponents/v1/components/RangeSlider/.

Looks like the problem happens because syncUIAndState() in the RangeSlider tries to clip the value to stay within bounds, which ends up triggering an infinite loop in the UI5Element.

The issue is not reproduced in the main branch, I believe it's fixed with - https://github.com/SAP/ui5-webcomponents/pull/9592.

Could you please have a look? Thank you in advance! Best regards, Ivaylo

ivoplashkov avatar May 20 '25 06:05 ivoplashkov

Hello @StasStone,

Version 1.24 is not longer supported, therefore we unable to downport a fix. Please consider upgrading to latest version, where the issue is no longer reproducible.

Thank you in advance! Best regards, Ivaylo

ivoplashkov avatar Aug 25 '25 07:08 ivoplashkov

This issue has been closed. To reopen, just leave a comment!

github-actions[bot] avatar Aug 25 '25 07:08 github-actions[bot]