vaadin / vaadin-button-flow

Vaadin Flow Java API for vaadin/vaadin-button Web Component
https://vaadin.com/components/vaadin-button
Other
0 stars 7 forks source link

disableOnClick not working when button is detached and attached again #169

Closed pleku closed 4 years ago

pleku commented 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.

tomivirkki commented 4 years ago

Closing as a duplicate of https://github.com/vaadin/vaadin-button-flow/issues/171