Focus bug with Valo?

Ok, I have problem that bothers me for some time

Here is code, praticaly it’s modified init method from eclipse plugin example:

[code]
@Override
protected void init(VaadinRequest request) {
final VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
setContent(layout);

    Button button = new Button("Click Me");
    final TextField textField = new TextField("ovde ide focus");
    
    button.addClickListener(new Button.ClickListener() {
        public void buttonClick(ClickEvent event) {
            Window window = new Window("prozor");
            window.setModal(true);
            window.addCloseListener(new CloseListener() {
                @Override
                public void windowClose(CloseEvent e) {
                    System.out.println("Closing... ");
                    textField.focus();
                }
            });
            addWindow(window);
        }
    });
    layout.addComponents(button, textField);
}

[/code]Problem is when I use Runo theme after closing modal window it works fine, it is focused on textfield.
Change it to Valo and it will focus back to Button after closing Window. Actually you can see that it focuses on TextField and than instantly focuses back on Button.
Bug or some functionality that I am not aware of?
Thank You

Very peculiar behavior indeed, thanks for reporting. Could you
make a ticket
for this right away also?

It is related to the window closing animation somehow. If you remove the animation, the focusing works the same as with Runo.

I will, can you tell me how do you disable animation?

Sure. You need a custom theme for that, where you need to override one variable:

$v-window-animate-out: null;

@import "../valo/valo";

.mytheme {
  @include valo;
}

Thank you!

I submited ticket regarding this issue

Didn’t manage to disable animtion with

$v-window-animate-out: null; After disabling all animations with

$v-animations-enabled: false; i achieved expected behaviour.

$v-window-animate-out: false;

also works for me

Hi Predrag
Can u post the ticket link? Is it resolved ?

Yes I did
https://dev.vaadin.com/ticket/15226
I’ ve tried now same example with 7.5.5 and it is not resolved

Interesting that with $v-animations-enabled: false;, the focus() provlem is solved.

Any updates on this issue?