- Issue created by @pfrenssen
- Status changed to Needs review
5 months ago 9:18am 24 June 2024 - 🇳🇱Netherlands johnv
I am sorry, I cannot replicate.
- enable office_hours, chosen modules
- add office_hours field with select list dropdown, for 24 hours notation and 60*1 minute notation.
- add 'List (integer)' field with some values
- customize /admin/config/user-interface/chosen to fall outside boundaries.
- edit node.Only when explicitly adding the 'Chosen' widget (from Chosen Field module), I get the chosen widget.
- Status changed to Needs work
4 months ago 9:29am 4 July 2024 - 🇳🇱Netherlands johnv
After uninstalling, and again installing the Chosen + Chosen Library modules, I do can replicate the problem.
P.S. a work-around is to change the field settings, value 'Time element type' from SelectList to HTML5.I added this line and tested again:
public static function processDatelist(&$element, FormStateInterface $form_state, &$complete_form) { $element = parent::processDatelist($element, $form_state, $complete_form); ... + // Make sure contrib module 'chosen' is not applied. It breaks JS. + $element['hour']['#chosen'] = FALSE; + $element['minute']['#chosen'] = FALSE; return $element; }
This solves the problem, but still generates the pop-up problem.
I updated the issue summary, and included 'minute' to the initial proposed solution. - 🇳🇱Netherlands johnv
Taking the solution from OP, the code is incorporated in the workflow's module.
As of now, the Chosen module is not applicable to Office Hours. - Status changed to Fixed
4 months ago 12:39pm 17 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.