Closed (fixed)
Project:
Cloud
Version:
6.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Jul 2023 at 02:41 UTC
Updated:
24 Jul 2023 at 08:59 UTC
Jump to comment: Most recent
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
xiaohua guan commentedComment #5
yas@xiaohua-guan
Thank you for the patch. I posted my comment. Thanks
Comment #6
xiaohua guan commented@yas
I check the document of Drupal, but I don't find jQuery will be removed. And I find Drupal 11.x is still using jQuery. Do you think we really need to change jQuery to native javascript, such as
document.getElementById?Comment #7
yas@xiaohua-guan
Drupal 11.x is still using jQuery but eventually it will be removed as planned. Here are some resources:
It is true that we have used jQuery in our cloud module family so far, but we should align the direction of Drupal core that is removing jQuery libraries when we introduce a new JavaScript file since those are unofficially supported by Drupal core eventually.
In #3052002: [meta] Replace JQuery with vanilla Javascript in core, there have some resources:
HTH
Comment #8
xiaohua guan commented@yas
Thanks for you kind comment. I changed the code to native javascript. Please take a look again.
Comment #9
yas@xiaohua-guan
Thank you for the update. It looks even better. I'll merge the patch to
5.xand6.x, and close this issue as Fixed.Comment #10
yasComment #13
yas