Widget includes hidden fields
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #2990970. -->
Reported by: [ben.kyriakou](https://www.drupal.org/user/1272308)
>>>
<p>When using the repeat widget, hidden fields are included in the calculation of the RRULE. This can be confusing if you've switched from one kind of repeat to another. I don't believe this is intentional, since it doesn't take into account the type of repeat.</p>
<p>As an example, create a repeating date. Select Monthly repeat, and check Monday and Tuesday. Now switch to Weekly, and check the Wednesday and Thursday. The calculated RRULE will be:</p>
<p><code>RRule:RRULE:FREQ=WEEKLY;BYDAY=MO,TU,WE,TH</code></p>
<p>When it should be:</p>
<p><code>RRule:RRULE:FREQ=WEEKLY;BYDAY=WE,TH</code></p>
<p>To fix this behaviour, the RRULE should only be calculated from visible form fields.</p>
issue