Closed lateefsofi closed 2 years ago
Hello @lateefsofi as explained offline
you need to import the feature itself: @ui5/webcomponents-base/dist/features/OpenUI5Support.js
and not the registerFeature
to register your own OpenUI5Support as I see in the provided sample.
It will work If you import:
import "@ui5/webcomponents-base/dist/features/OpenUI5Support.js";
instead of:
import "./ui5Config.js";
Hello,
I've modified the code snippet to just import the OpenUI5Support.js as it registers itself and in general the methods should not be overridden/mocked the way they are in the code provided above, as Ilhan pointed.
I added OpenUI5 to the page to test the OpenUI5Support feature.
Modified snippet - https://codesandbox.io/s/klf8b
The issue is reproducible, error is thrown from line #85 in OpenUI5Support.js which is called by PopupUtils.js (line #105)
const Popup = window.sap.ui.require("sap/ui/core/Popup");
return Popup.getNextZIndex();
window.sap.ui.require("sap/ui/core/Popup")
returns undefined as if the module is not loaded, although the UI5 core library seems to be loaded.
Could you please check it.
Hello,
Sorry for the delay in response. I just checked the CodeSandbox and it worked fine after I deleted the override of the feature definition.
Please see for example: https://codesandbox.io/s/ui5-webcomponents-forked-z2utcf?file=/src/ui5Config.js:0-66
Regards, Vladi
Bug Description
ui5-dialog show method is throwing error when used with OpenUI5Support
Expected Behavior
ui5-dialog should open with out any error.
Steps to Reproduce
Isolated Example
https://codesandbox.io/s/ui5-webcomponents-forked-qebrk?file=/src/index.js
Context
Log Output / Stack Trace / Screenshots
Priority
Stakeholder Info (if applicable)