The dialog created with
dialogs.createOptionDialog() it is not modal and does not have a .withModal method like createMessageDialog().
How do i make it modal ?
Hello!
Unfortunately, you cannot make it modal, for now. I created an issue: Haulmont/jmix-ui#499.
As a workaround you can create a screen and open it as modal dialog:
UserBrowse dialog = screenBuilders.screen(this)
.withScreenClass(UserBrowse.class)
.withOpenMode(OpenMode.DIALOG)
.build();
DialogWindow window = (DialogWindow) dialog.getWindow();
window.setModal(true);
dialog.show();