openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.ui.unified.DateTypeRange customData is not written to DOM

Open daletman opened this issue 9 months ago • 1 comments

What is the issue and how can we reproduce it?

Using the following code in XML-View

<u:Calendar specialDates="{model>/calendarSpecialDates}">
	<u:specialDates>
		<u:DateTypeRange
			startDate="{model>startDate}"
			type="{model>type}"
		>
			<u:customData>
				<c:CustomData
					key="asd"
					value="qwe"
					writeToDom="true"
				/>
			</u:customData>
		</u:DateTypeRange>
	</u:specialDates>
</u:Calendar>

Error:

The DOM does not contain any data-asd="qwe".

Expected behavior:

Every div for a special date should contain data-asd="qwe". It's a valid aggregation: https://ui5.sap.com/1.134.0/#/api/sap.ui.unified.DateTypeRange%23aggregations

Which OpenUI5 version is your project targeting?

1.134

Is the issue device- or browser-specific?

No response

Confirmation

  • [x] I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • [x] I am not disclosing any internal or sensitive information.

daletman avatar Mar 31 '25 16:03 daletman

Hello @daletman

Thank you for sharing this finding. I've created an internal incident DINC0460830. The status of the issue will be updated here in GitHub.

Regards, Stoyan

hinzzx avatar Apr 03 '25 06:04 hinzzx

Dear @daletman,

The issue is fixed and will be available in 1.139 UI5 version.

Regards, Georgi

GDamyanov avatar Jul 09 '25 08:07 GDamyanov