Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
LayoutClickListener acts differently in Firefox and Chromium
Hello,
I've just noticed that when you put a disabled TextField in the VerticalLayout with a LayoutClickListener attached then it works differently in these two browsers. In Chromium it is activated when you click on textfield or on the caption. In Chromium it is activated only when you click on the caption and nothing happens when you click on the textbox.
Which behaviour is correct? Any workarounds?
Example code:
Window mainWindow = new Window("ClickListenerBug");
TextField textField = new TextField("Caption");
textField.setEnabled(false);
VerticalLayout layout = new VerticalLayout();
layout.addListener((LayoutClickListener) new LayoutClickListener() {
@Override
public void layoutClick(LayoutClickEvent event) {
((VerticalLayout) event.getSource()).getWindow().showNotification("click!");
}
});
layout.addComponent(textField);
mainWindow.addComponent(layout);
setMainWindow(mainWindow);
Last updated on May, 25th 2012
You cannot reply to this thread.