New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix jQuery event shorthand is deprecated - focus, focusout, hover #37
Conversation
Fix a well-known warning following jquery-validation/jquery-validation#2243 and https://api.jquery.com/focus/
Fix a well-known warning following jquery-validation/jquery-validation#2243 and https://api.jquery.com/focusout/
Fix jQuery.fn.hover() following https://github.com/KingSora/OverlayScrollbars/releases/tag/v1.5.3 and https://api.jquery.com/hover/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @leemyongpakvn,
I tried this theme using branch 8.0.x.
Using Chrome Version 94.0. and Firefox 101.0.1 (64 bits).
- In the FO > Click on any product to check the product details page
- See error in the console
The error .hover
is still displayed
I attached a screen record
Untitled_.Jun.21.2022.5_09.PM.mp4
Could you please confirm that only the warning related to .focus
& .focusout
& .hover
will be fixed in this PR?
Thank you!
@khouloudbelguith I confirm that this PR will fix the warning related to .focus & .focusout & .hover come from |
@khouloudbelguith Tested OK with PS 8.0.0 also. Please Disable Smart cache for JavaScript in configure/advanced/performance/CCC (Combine, Compress and Cache) and clear web browser cache before test again. |
@khouloudbelguith remember that it might not fix all the issues in the developer console, but we should have less as some could be from some modules, etc. |
@NeOMakinG Will I need to add |
@leemyongpakvn if assets are pushed to the repository, I would suggest you to push the theme.js inside your PR directly so we are sure that we don't forget to push them! |
@NeOMakinG I don't see |
@leemyongpakvn yeah because I'm pretty sure it's added via composer and then build on the PS release, you shouldn't push assets I guess, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @leemyongpakvn
I reproduce the issue even when I disabled the cache, see the attached screen record below:
pr_37.webm
Please check and feedback.
Thanks!
@hibatallahAouadni I have added two more steps in How to test? (step 2 & 3). I can not run your .webm screencast, so please send in another popular format (.mov, .mp4), or just a screenshot of the Web browser console log. |
@kpodemski and @NeOMakinG I thought Step 1, 2, 3 in this How to test? is a must-to-know in QA cookbook 🙏 It is boring to repeat these steps in every PR that has CSS, JS changes with Webpack. |
@leemyongpakvn I'm pretty sure they did that :) I think not all console errors will disappear because, if I recall correctly |
@kpodemski Your recalling is right. I informed it with khouloudbelguith on Jun 22, and emphasized checking errors come from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @leemyongpakvn ,
I tested this theme
I followed the process with
- rebuild theme.js with npm run build in _dev and
- Clear cache then Disable Smart cache for JavaScript in CCC
The issue is well fixed ✔️ and there is no longer any warning related to .focus
& .focusout
& .hover
So it's QA ✔️
Thank you
Thanks, @leemyongpakvn ! |
cd themes/classic/_dev
npm run build
2. In FO: Clear Web browser cache
3. In BO Configure/Advanced/Performance: Clear cache then Disable Smart cache for JavaScript in CCC;
4. Add some products to Cart, then open Cart page and look at Web browser console to see the warnings (from
theme.js
) still there or not