ValidationTextBox#pattern changes should update state

Fixes #17408.