Skip to content

Commit

Permalink
Merge pull request #37 from leemyongpakvn/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kpodemski committed Nov 14, 2022
2 parents 727b567 + 823e557 commit bbae998
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _dev/js/components/form.js
Expand Up @@ -31,10 +31,10 @@ export default class Form {
}

parentFocus() {
$('.js-child-focus').focus(function () {
$('.js-child-focus').on('focus', function () {
$(this).closest('.js-parent-focus').addClass('focus');
});
$('.js-child-focus').focusout(function () {
$('.js-child-focus').on('focusout', function () {
$(this).closest('.js-parent-focus').removeClass('focus');
});
}
Expand Down
2 changes: 1 addition & 1 deletion _dev/js/components/top-menu.js
Expand Up @@ -30,7 +30,7 @@ export default class TopMenu extends DropDown {
init() {
let elmtClass;
const self = this;
this.el.find('li').hover((e) => {
this.el.find('li').on('mouseenter mouseleave', (e) => {
if (this.el.parent().hasClass('mobile')) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion _dev/js/product.js
Expand Up @@ -115,7 +115,7 @@ $(document).ready(() => {

$(prestashop.themeSelectors.touchspin).off('touchstart.touchspin');

$quantityInput.focusout(() => {
$quantityInput.on('focusout', () => {
if ($quantityInput.val() === '' || $quantityInput.val() < $quantityInput.attr('min')) {
$quantityInput.val($quantityInput.attr('min'));
$quantityInput.trigger('change');
Expand Down

0 comments on commit bbae998

Please sign in to comment.