minicart icon indicating copy to clipboard operation
minicart copied to clipboard

Close button on modal popup and per item not working

Open spencershaw opened this issue 8 years ago • 2 comments

The example at http://minicartjs.com/ is not working fully.

  1. The modal cross (top right hand corner of the popup) does nothing
  2. The line item crosses do not work.

Attached is:

  • a zip of MP4 video showing the bug
  • screenshot of my browser

screenshot 2016-07-12 16 11 31

bandicam 2016-07-12 16-09-22-414.zip

spencershaw avatar Jul 12 '16 15:07 spencershaw

Is minicart.js still supported? Can't believe no one has replied.

spencershaw avatar Jul 25 '16 14:07 spencershaw

Sorry for the 1 year, but I found the problem...

You're probably using a touch laptop and Chrome turns on the event "ontouchstart" by default. I found in .js the part that creates the "x" event and if "ontouchstart" is enabled, the code does not create this event.

To fix it you need to delete this part "('ontouchstart' in window)? 'Touchstart' :" on line 2793 of minicart.js instead of "events.add (document, ('ontouchstart' in window)? 'Touchstart' : 'Click', viewevents.click, this);".

It will look like this: "events.add (document, 'click', viewevents.click, this);"

mathmach avatar Jul 21 '17 04:07 mathmach