Fixed
Project:
Smart Date
Version:
4.3.x-dev
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2023 at 20:41 UTC
Updated:
30 Jun 2026 at 04:57 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
coderdan commentedComment #3
coderdan commentedThe patch in #2 prevents targeting elements outside of the time_wrapper sub-element, such as the 'make recurring' checkbox. This patch should solve for that by removing the time_wrapper as the sole parent for all elements.
Comment #4
skyriter commentedIn Drupal 11, this patch is throwing an error at runtime:
This might be related, though I am not sure:
- https://www.drupal.org/project/drupal/issues/3427739
I have run into the error on the VA site when trying to remove a paragraph item with a date and time from a field in the form.
Comment #5
skyriter commentedPer Dan, there's an update to this approach described here: https://www.drupal.org/node/3307919
I can confirm that this appears to work as expected.
Comment #7
mandclu commentedComment #9
mandclu commentedI was able to reproduce the issue using some of the validation built into Smart Date, though having the fix visible did require updating some of the validation code. As a result this should also serve as a good reference for anyone wanting their custom validation to also properly highlight the appropriate sub-form element.
Thanks for the work here, merged in.