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

前端 未结 6 822
死守一世寂寞
死守一世寂寞 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:52

    Your code is pretty much incorrect..

    • input inside label ?
    • Events are suppose to bubble up and not downwards
    • and its so simple.. if you want to know when li was clicked attach an handler to that and not to input

    in your updated 4 you could do an event.stopPropagation for 'input` click and that would solve infinity problem

提交回复
热议问题