Materialize select and dropdown: Touch event selecting wrong item

前端 未结 3 649
小鲜肉
小鲜肉 2021-01-07 09:02

This bug occurs not just in my code, but also on the Materialize documentation site, so I will use their code as an example:

3条回答
  •  生来不讨喜
    2021-01-07 09:19

    You should add the "browser-default" class to the select elements.

    Of course this will loose the usual materializecss look and feed on that select element Also on other devices.

    A possible workaround would be to add that class selectively only when the user browser is safari.

提交回复
热议问题