Explorar el Código

Fix @PushStateNavigation with @PreserveOnRefresh (#11417)

Navigation needs to be done also in doRefresh(..) in similar fashion as in doInit(..)

Fixes https://github.com/vaadin/framework/issues/11416
tags/8.8.0.beta1
Tatu Lund hace 5 años
padre
commit
9d2dd8bed8
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7
    0
      server/src/main/java/com/vaadin/ui/UI.java

+ 7
- 0
server/src/main/java/com/vaadin/ui/UI.java Ver fichero

@@ -869,6 +869,13 @@ public abstract class UI extends AbstractSingleComponentContainer

page.updateLocation(newLocation.toString(), true, false);
page.updateBrowserWindowSize(newWidth, newHeight, true);

// Navigate if there is navigator, this is needed in case of
// PushStateNavigation
Navigator navigator = getNavigator();
if (navigator != null) {
navigator.navigateTo(navigator.getState());
}
}

/**

Cargando…
Cancelar
Guardar