Change value of stateful button after event loop

Fixes #14450

Question is, is that a breaking change?

/cc @fat @cvrebert