cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UI5 MessageStrip Error: Assertion failed: Method 'class' must be called with exactly one class name

M_M
Explorer
0 Likes
343

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. 

View Entire Topic
Filipp
Explorer
0 Likes

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.

 

M_M
Explorer
0 Likes
I'm not using openui5. I'm using SAP UI5.