-
Notifications
You must be signed in to change notification settings - Fork 254
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
fix(ui5-input): focus is handled properly #2670
Conversation
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.
add a test reproducing the described issue
I think the issue is now just moved in the multi input
@@ -237,6 +237,18 @@ class MultiInput extends Input { | |||
} | |||
} | |||
|
|||
/** | |||
* @override |
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.
override?
@@ -371,4 +371,19 @@ describe("Input general interaction", () => { | |||
assert.notOk(inputPopover.isDisplayedInViewport(), "The inpuit popover is closed as it lost the focus."); | |||
assert.ok(helpPopover.isDisplayedInViewport(), "The help popover remains open as the focus is within."); | |||
}); | |||
|
|||
it("Should open suggestions popover when ui5-input is the fisrt focusable element within a dialog", () => { |
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.
first (typo)
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.
it is ok to me, up to @MapTo0 to merge the change
Previously, on focus the ui5-input component, when the event target was ui5-input, the focused attribute was not added. As a result, the focus outline was not presented, as well as the suggestions were not visualised initially when used.
Fixes #2652