on ‎2026 Feb 10 10:10 AM
Hi,
I had an exception in the Console when loading a ui5 page (not Fiori elements), that contains a MessageStrip:
Error: Assertion failed: Method 'class' must be called with exactly one class name
Component: sap.m.MessageStrip
Version affected: 1.143.0+
Version working: 1.142.6
Error: Assertion failed: Method 'class' must be called with exactly one class name
Reproduction: <MessageStrip class="sapUiSmallMargin" text="Test"/>
There are clearly not 2 classes assigned to the MessageStrip. It even occurs if the class tag is not even there.
Request clarification before answering.
<sections>
<ObjectPageSection title="..." id="1Section">
<subSections>
<ObjectPageSubSection id="1SubSection"
visible="{= !${...} }">
<blocks>
<core:Fragment fragmentName="1Fragment" type="XML"/>
</blocks>
</ObjectPageSubSection>
</subSections>
But not only there. I've also got a Wizard in a Dialog fragment, which is triggered on a button from the 1st column. That has MessageStrip tags as well. Same issue with them.
The question is more, why does it fail when rendering the MessageStrip? Could it be another problem?
The error message states, that the class method must be called with exactly one class name. If this is referring to CSS classes... It still happens if I remove multiple CSS classes entirely.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, @M_M .
This seems like a regression in the MessageStrip renderer. I couldn't find an existing issue for it on the https://github.com/SAP/openui5/issues. Please, consider filing an issue there.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.