You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a popover is inside a dialog it doesn't close on blur
To Reproduce
run the below code, click on send icon to show the popover, click anywhere except on the test me button and the popover doesn't close. Click on the test me button (now focus is in the popover) click anywhere outside the popover and it closes
Expected behavior
the popover should close when you click anywhere outside of it
public class DlgTest extends Dialog {
public DlgTest() {
init(this);
this.setWidth("90%");
this.setHeight(Calc.sub(Unit.vh.of(100), Unit.px.of(50)));
initHeader();
this.setModal(true);
this.setAutoClose(false);
}
protected void initHeader() {
MdiIcon icnSend = Icons.send();
Popover pop = Popover.create(icnSend)
.setCloseOnBlur(true)
.closeOnEscape(true)
.setPosition(DropDirection.BOTTOM_MIDDLE)
.appendChild(Card.create("Card Title")
.appendChild(Button.create("Test Me"))
.addCss(dui_bg_accent, dui_fg, dui_elevation_0, dui_m_2px, dui_rounded_sm)
);
NavBar nav = NavBar.create().addCss(dui_dialog_nav)
.setTitle("Test Dialog")
.appendChild(PostfixAddOn.of(icnSend))
.appendChild(PostfixAddOn.of((Icons.close().clickable().addClickListener(e -> close()))));
getHeader().appendChild(nav);
}
}
/**
* This is the entry point method.
*/
public void onModuleLoad() {
var layout = AppLayout.create("Domino-ui test");
body().appendChild(layout);
new DlgTest().open();
}
Describe the bug
If a popover is inside a dialog it doesn't close on blur
To Reproduce
run the below code, click on send icon to show the popover, click anywhere except on the test me button and the popover doesn't close. Click on the test me button (now focus is in the popover) click anywhere outside the popover and it closes
Expected behavior
the popover should close when you click anywhere outside of it
you can also grab a full test project from: https://github.com/howudodat/domtest
The text was updated successfully, but these errors were encountered: