Disabled button is clickable on Edge browser

后端 未结 4 1894
轻奢々
轻奢々 2020-12-20 17:06

I have problem with Edge browser. In my web site I have buttons with span tags inside them. In this span tags I bind text and icons. So far I had no problem but on Edge brow

4条回答
  •  温柔的废话
    2020-12-20 18:05

    Just set

    pointer-events: none;

    for disabled buttons.

    Here's CSS to disable all disabled elements everywhere:

    *[disabled] {
        pointer-events: none !important;
    }
    

    pointer-events documentation

提交回复
热议问题