-
Notifications
You must be signed in to change notification settings - Fork 279
fix(OpenUI5Support): fix sap.m.Select inside a ui5-dialog #11939
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
92748d6
chore: improve test page
TeodorTaushanov 2627f54
Merge remote-tracking branch 'origin/main' into focusPatcher
TeodorTaushanov 6c9dae5
Merge remote-tracking branch 'origin/main' into focusPatcher
TeodorTaushanov de0ccd3
fix(OpenUI5Support): fix sap.m.Select inside a ui5-dialog
TeodorTaushanov 6d1d541
fix: fix lint errors
TeodorTaushanov 495d54d
Merge remote-tracking branch 'origin/main' into focusPatcher
TeodorTaushanov d5ff5f7
chore: simplifying code
TeodorTaushanov 99c64cb
chore: rename methods
TeodorTaushanov d24b45c
chore: add comments
TeodorTaushanov eb253b0
Merge remote-tracking branch 'origin/main' into focusPatcher
TeodorTaushanov 461fdc4
Merge remote-tracking branch 'origin/main' into focusPatcher
TeodorTaushanov 10c5daf
Merge remote-tracking branch 'origin/main' into focusPatcher
TeodorTaushanov a4801ba
chore: rename topMost to topmost
TeodorTaushanov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,19 @@ | |
document.getElementById("dialog1").open = true; | ||
}); | ||
|
||
sap.ui.require(["sap/m/Select", "sap/ui/core/Item"], (Select, Item) => { | ||
new Select({ | ||
items: [ | ||
new Item({ text: "Item 1" }), | ||
new Item({ text: "Item 2" }), | ||
new Item({ text: "Item 3" }) | ||
], | ||
change: function (oEvent) { | ||
console.error("Selected item:", oEvent.getParameter("selectedItem").getText()); | ||
} | ||
}).placeAt("dilog1content"); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a typo? |
||
}); | ||
|
||
document.getElementById("dialogButton").addEventListener("click", function () { | ||
sap.ui.require(["sap/m/Button", "sap/m/Dialog"], (Button, Dialog) => { | ||
new Dialog({ | ||
|
@@ -81,6 +94,7 @@ | |
<ui5-button id="myButton">Open WebC Dialog</ui5-button> | ||
</div> | ||
<ui5-dialog id="dialog1" header-text="This is an WebC Dialog 1"> | ||
<div id="dilog1content"></div> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this a typo? |
||
<ui5-button id="dialogButton">Open UI5 dialog</ui5-button> | ||
</ui5-dialog> | ||
<ui5-dialog id="newDialog1" header-text="This is an WebC Dialog 2"> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, if you consider more descriptive:
Registry containing all currently opened OpenUI5 and Web Component popups.