Reviewed & tested by the community
Project:
Time Field Picker
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Nov 2020 at 01:36 UTC
Updated:
9 Nov 2023 at 13:01 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
carlosrfm commentedComment #3
carlosrfm commentedComment #4
carlosrfm commentedComment #5
carlosrfm commentedComment #6
carlosrfm commentedAfter few tests, I figured this out. It has to do with the scripts loading order, assigning a negative weight to the materialize script, the issue goes away.
In our case, the error was breaking the functionality of an autocomplete field that was located after the time range picker field.
Comment #7
jidrone commentedUpdated description to include steps to reproduce.
Comment #8
jidrone commentedComment #9
teodorakis commentedFaced exactly same issue as carlosrfm described. Patch in #6 fixed it.
Comment #10
teodorakis commentedComment #11
yaroslav drapoy commentedDoesn't fix it on drupal core 9.4.8 and 9.5.3 (tested also on pure drupal 9.5.3 installation). Could you please share what the external lib depends on to figure out why the weight fixes the issue on your side? The same issue with autocomplete field that is located after time range picker field. I tried another weights and it still doesn't work.
Comment #12
yaroslav drapoy commentedFound that in drupal core 9.5.3 autocomplete-min.js has weight -11.7. So for materialize.js I set weight -12 and it works now (on drupal core 9.5.3)
UPD: Also it works on core 8.9.20 pure installation.
Comment #15
kunal_sahu commentedHi I have created a MR . Please merge thanks
Comment #16
jidrone commentedHi @kunal_sahu
I don't see any difference between the MR you created and the patch.
Comment #17
jellyburger commentedLovely module. Are there any plans to release a version for Drupal 10? Thank you.
Comment #18
bobi-mel commentedHi @kunal_sahu
I checked your changes. The bug was fixed.