Skip to content
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

chore(TableRowActionBase): the actions slot is set automatically #10766

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

vladitasev
Copy link
Contributor

@vladitasev vladitasev commented Feb 4, 2025

Changes:

  • new metadata setting autoSlot added, allowing a component to be automatically assigned to a certain slot based on its class (in this example ui5-table-row-action automatically gets slot="actions" without the user having to type it explicitly
  • the real "fix" for the synchronization issue is in UI5Element.ts - when children are processed slot information is gathered before children are upgraded, making them always go to the default slot

@vladitasev vladitasev requested a review from aborjinik February 4, 2025 13:02
@aborjinik
Copy link
Contributor

Hi @vladitasev as mentioned this works for the test page but not when we remove the slot="actions" in the test file TableRowActions.cy.tsx

@aborjinik
Copy link
Contributor

is this going to be merged? we are looking forward to remove unnecessary slot attributes from the table dedicated components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants