jQuery click event only working after moving the mouse in Chrome

前端 未结 1 1814
不思量自难忘°
不思量自难忘° 2021-01-05 08:14

So I know there are better ways of switching styles, but bear with me...

There seems to be a small bug happening on Chrome (but not Firefox) where the \'click\' eve

相关标签:
1条回答
  • 2021-01-05 08:36

    I don't why this shouldn't work (except the strange rel="" use).

    If you are trying to use a minified or a version with multiple instances of the js the problem might be the usage of .click instead of the .on('click', function(e)).

    To see an example of what i trying to say, check out my Fiddle.

    For a full explanation on the difference between the two click functions check this overflow

    0 讨论(0)
提交回复
热议问题