Skip to content

Commit

Permalink
chore: Clarify warning comment for setEnabled (#10075)
Browse files Browse the repository at this point in the history
  • Loading branch information
Legioth authored and vaadin-bot committed Mar 2, 2021
1 parent 144e362 commit 0c3369c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ default void setEnabled(boolean enabled) {
* XXX WARNING Do not override this method. Propagating the enabled
* state to the element in this way is critical to fulfill generic
* assumptions with regards to application security.
*
* Override Component::onEnabledStateChanged if you need to adjust how
* the disabled state is visually represented in the browser.
*/
getElement().setEnabled(enabled);
}
Expand Down

0 comments on commit 0c3369c

Please sign in to comment.