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
344

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
Yogananda
Product and Topic Expert
Product and Topic Expert
0 Likes

@M_M @Filipp 

in version 1.144.0 is working fine with below code. 

			<MessageStrip
				text="Yogananda Warning with default icon and close button:"
				type="Warning"
				showIcon="true"
				showCloseButton="true"
				class="sapUiMediumMarginBottom">
			</MessageStrip>