mirror of
https://gitlab.kit.edu/uskyk/typicalc.git
synced 2024-11-10 03:10:44 +00:00
Fix display of inference tree after reload
This commit is contained in:
parent
ffac808366
commit
c9512b57d2
@ -1,6 +1,7 @@
|
||||
package edu.kit.typicalc.view.main;
|
||||
|
||||
import com.vaadin.flow.component.Key;
|
||||
import com.vaadin.flow.component.UI;
|
||||
import com.vaadin.flow.component.button.Button;
|
||||
import com.vaadin.flow.component.button.ButtonVariant;
|
||||
import com.vaadin.flow.component.dependency.CssImport;
|
||||
@ -81,7 +82,10 @@ public class InputBar extends HorizontalLayout implements LocaleChangeObserver {
|
||||
*/
|
||||
protected void inferTerm(String term) {
|
||||
inputField.setValue(term);
|
||||
inferTypeButton.click();
|
||||
// for some reason the Vaadin "click" does not work
|
||||
//inferTypeButton.click();
|
||||
UI.getCurrent().getPage().executeJs(
|
||||
String.format("document.getElementById('%s').click()", INFER_BUTTON_ID));
|
||||
}
|
||||
|
||||
private void onInputFieldValueChange() {
|
||||
|
Loading…
Reference in New Issue
Block a user