Closed pleku closed 4 years ago
Based on https://stackoverflow.com/questions/63634513/reliability-of-button-disableonclick-in-vaadin-14
Basically the initialization code initDisableOnClick should be executed always when the button is attached. Currently it is easily broken when either @PreserveOnRefresh is used or when the button is inside a dialog that is closed and reopened.
initDisableOnClick
@PreserveOnRefresh
Closing as a duplicate of https://github.com/vaadin/vaadin-button-flow/issues/171
Based on https://stackoverflow.com/questions/63634513/reliability-of-button-disableonclick-in-vaadin-14
Basically the initialization code
initDisableOnClick
should be executed always when the button is attached. Currently it is easily broken when either@PreserveOnRefresh
is used or when the button is inside a dialog that is closed and reopened.