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

fix(ui5-li): fix title update when initially empty #2362

Merged
merged 2 commits into from
Oct 28, 2020

Conversation

ilhan007
Copy link
Member

When the textContent is an empty string initially, the following element, containing the "slot" for the title text is not rendered:
<span part="title" class="ui5-li-title"><slot></slot></span>
Later when we update the "textContent" is not displayed as it relies on the slotting, but the "slot" element is not there.
The issue has been found in a specific Select use case, referenced below. That's why I considered making a "ui5-select-list-item" and make that change in a separate template, but I can't find side effects or visual degradations.

FIXES #2342

When the textContent is an empty string initially, the following element is not rendered
<span part="title" class="ui5-li-title"><slot></slot></span>
Later when we update the textContent it is not displayd as it relys on the slotting, but the slot element is not there. The issue has been found in a specific Select use case, referenced below. I considered making a ui5-select-list-item and make that change in a separate template, but I can't find side effects or visual degradations.

FIXES #2342
@ilhan007 ilhan007 merged commit 682a25c into master Oct 28, 2020
@ilhan007 ilhan007 deleted the fix-select-rerendering branch October 28, 2020 09:15
ilhan007 added a commit that referenced this pull request Nov 11, 2020
When the textContent is an empty string initially, the following element is not rendered
<span part="title" class="ui5-li-title"><slot></slot></span>
Later when we update the textContent, it is not displayed as it relies on the slotting, but the slot element is not there. The issue has been found in a specific Select use case, referenced below. I considered making a ui5-select-list-item and make that change in a separate template, but I can't find side effects or visual degradations.

FIXES #2342
ilhan007 added a commit that referenced this pull request Nov 19, 2020
When the textContent is an empty string initially, the following element is not rendered
<span part="title" class="ui5-li-title"><slot></slot></span>
Later when we update the textContent, it is not displayed as it relies on the slotting, but the slot element is not there. The issue has been found in a specific Select use case, referenced below. I considered making a ui5-select-list-item and make that change in a separate template, but I can't find side effects or visual degradations.

FIXES #2342
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.

Select: Wrong options after re-render
2 participants