Skip to content

sap.ui.unified.CalendarAppointment customData is not written to DOM #4250

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks done
daletman opened this issue Mar 31, 2025 · 1 comment
Open
2 tasks done

Comments

@daletman
Copy link

daletman commented Mar 31, 2025

What is the issue and how can we reproduce it?

Using the following code for a SinglePlanningCalendar:

<appointments>
	<unified:CalendarAppointment
		title="{Name}
		startDate="{
			path: 'Start',
			type: 'DateTimeOffset',
			constraints: {
				precision: 7,
				v4: true
			}
		}"
		endDate="{
			path: 'End',
			type: 'DateTimeOffset',
			constraints: {
				precision: 7,
				v4: true
			}
		}"
	>
		<unified:customData>
			<c:CustomData
				key="asd"
				value="qwe"
				writeToDom="true"
			/>
		</unified:customData>
	</unified:CalendarAppointment>
</appointments>

Error:

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

Expected behavior:

Every div for a appointment 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

  • I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • I am not disclosing any internal or sensitive information.
@hinzzx
Copy link
Contributor

hinzzx commented Apr 3, 2025

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

Regards,
Stoyan

@hinzzx hinzzx removed their assignment Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants