SAP / ui5-webcomponents

UI5 Web Components - the enterprise-flavored sugar on top of native APIs! Build SAP Fiori user interfaces with the technology of your choice.
https://sap.github.io/ui5-webcomponents/
Apache License 2.0
1.5k stars 258 forks source link

[ui5-calendar]: select a day throw js error if the format pattern is set to 'w' #7544

Closed lyc489 closed 10 months ago

lyc489 commented 1 year ago

Bug Description

I want to get the week number by date when select this day but occurs a js error if format pattern is set to 'w'

image

Affected Component

ui5-calendar

Expected Behaviour

No response

Isolated Example

No response

Steps to Reproduce

1. 2. 3. ...

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

1.17.0

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

dimovpetar commented 1 year ago

Hello @SAP/ui5-webcomponents-topic-b ,

This can be reproduced on the playground https://sap.github.io/ui5-webcomponents/playground/?path=/story/main-calendar--basic&args=formatPattern:w From the documentation of the property "Determines the format, displayed in the input field." I couldn't determine whether the "w" string is supported pattern. I would also like to add that is not clear which is this "input field".

Best regards, Petar

tsanislavgatev commented 10 months ago

Hello colleagues,

The issue was fixed in master branch.

Best Regards, Tsanislav