IE 8 and below not triggering click on elements which have display: none; Any workaround?

前端 未结 6 833
死守一世寂寞
死守一世寂寞 2021-02-12 22:07

The issue is with Internet Explorer 8 and below. Have found a decent working solution.

Issue

Internet Explorer 8 and below is no

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-12 22:49

    I think this is pretty straightforward. You just have to use click handlers on visible items. If you want a click on the or the

  • to work when the object is hidden and you want it to work in all browsers, then you just need to put a click handler on either the or the
  • because that is a visible object that will receive the click when the is hidden.

提交回复
热议问题