Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
remove check on tag image
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Oct 11, 2023
1 parent 8fe7233 commit 7ff3614
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ interactivityStore(
store.context.woocommerce.isDialogOpen &&
store.context.woocommerce.isDialogOpen !==
isDialogStatusChanged &&
store.ref.tagName === 'IMG' &&
store.ref.closest( 'dialog' )
) {
store.ref.scrollIntoView( {
Expand All @@ -132,8 +131,7 @@ interactivityStore(
if (
! store.context.woocommerce.isDialogOpen &&
store.context.woocommerce.isDialogOpen !==
isDialogStatusChanged &&
store.ref.tagName === 'IMG'
isDialogStatusChanged
) {
store.ref.scrollIntoView( {
behavior: 'instant',
Expand Down

0 comments on commit 7ff3614

Please sign in to comment.