Skip to content

Commit

Permalink
Fix click listener in WidgetSet test (#10324)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuoanttila authored Nov 15, 2017
1 parent 6e01211 commit 7a8ff50
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ protected void init(VaadinRequest vaadinRequest) {

Button button = new Button("Click Me");
button.addClickListener(
event -> new Label(
"Thanks " + name.getValue() + ", it works!"));
event -> layout.addComponent(new Label(
"Thanks " + name.getValue() + ", it works!")));

getPage().getJavaScript().execute(
"widgetsetinfo.innerText=document.querySelector('iframe').id;");
Expand Down

0 comments on commit 7a8ff50

Please sign in to comment.