Closed (works as designed)
Project:
Webform
Version:
8.x-5.4
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2019 at 12:06 UTC
Updated:
31 Aug 2019 at 01:29 UTC
Jump to comment: Most recent

Comments
Comment #2
jrockowitz commentedForm alter hooks are executed when the form first loads then when it is rebuilt during the page request.
I recommend using
$form_state->isRebuilding()to determine if the form is being rebuilt.