[RangeSlider]: Callstack Exceeded
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
- Navigate to the playground
- Specify
end-valueattribute greater thanmaxattribute's value
...
Log Output, Stack Trace or Screenshots
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.
Hello @SAP/ui5-webcomponents-topic-rl , Please have a look at this issue with the RangeSlider.
Kind regards,
Georgi
SAP Development Support
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
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
This issue has been closed. To reopen, just leave a comment!