JSFiddle - React, Tailwind, and code Playground
HTML
<script id='sap-ui-bootstrap' type='text/javascript'
src='https://openui5.hana.ondemand.com/resources/sap-ui-core.js'
data-sap-ui-libs='sap.ui.commons, sap.m'>
</script>
<body>
<section id="content"></section>
</body>
JavaScript
var app = new sap.m.App("myApp", {
initialPage:"page"
});
var page= new sap.m.Page("page", {
title: "Message Toast Issue",
content : new sap.m.Button({
text : "Show Message Toast",
press : function() {
sap.m.MessageToast.show("Should not disappear...", {
autoClose: false
})
}
})
});
app.addPage(page);
app.placeAt("content");