Skip to content
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

Merged
merged 3 commits into from
Jan 22, 2021
Merged

Conversation

niyap
Copy link
Contributor

@niyap niyap commented Jan 12, 2021

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

@niyap niyap requested a review from MapTo0 January 12, 2021 14:57
Copy link
Member

@MapTo0 MapTo0 left a 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
Copy link
Member

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", () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first (typo)

Copy link
Member

@ilhan007 ilhan007 left a 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

@MapTo0 MapTo0 merged commit 2c033aa into SAP:master Jan 22, 2021
kineticjs pushed a commit to kineticjs/ui5-webcomponents that referenced this pull request Jan 25, 2021
alexandar-mitsev pushed a commit to alexandar-mitsev/ui5-webcomponents that referenced this pull request Feb 1, 2021
NHristov-sap pushed a commit to NHristov-sap/ui5-webcomponents that referenced this pull request Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input Suggestions are not shown in Dialog on first focus.
3 participants