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-split-button): fix JS error on empty text content #4612

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

ilhan007
Copy link
Member

@ilhan007 ilhan007 commented Jan 23, 2022

When the default slot is empty, e.g no text is provided, the this.text[0].textContent throws an error.
Instead, call to this.textContent is sufficient.

Fixes: #4609

MarcusNotheis
MarcusNotheis previously approved these changes Jan 23, 2022
NHristov-sap
NHristov-sap previously approved these changes Jan 24, 2022
@ilhan007 ilhan007 closed this Jan 24, 2022
@ilhan007 ilhan007 reopened this Jan 24, 2022
@ilhan007 ilhan007 dismissed stale reviews from NHristov-sap and MarcusNotheis via 870cb64 January 24, 2022 07:54
@ilhan007 ilhan007 merged commit c407fd1 into master Jan 24, 2022
@ilhan007 ilhan007 deleted the fix-split-btn branch January 24, 2022 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SplitButton without text throws error
3 participants