Ant-design-mobile: The SegmentedControl component invalid on IOS.

Created on 29 Jan 2018  ·  8Comments  ·  Source: ant-design/ant-design-mobile

Version

2.1.5

Environment

[email protected]
ios 10.3.2(14F89) 和 ios 11

Reproduction link

https://github.com/sundayha/test_app

Steps to reproduce

重现步骤点击提供的重现链接即可,很简单。

What is expected?

fix it thanks

What is actually happening?

The three component is did not work


一个issue提了3个问题,请帮忙看下。多谢。

Usage document

Most helpful comment

我们也遇到了苹果手机segment点击不了的问题;是因为segment `item中div遮住了点击元素的问题。我们使用css简单避开了;

.am-segment-item-inner{
  display: none;
}

All 8 comments

You did not import fastclick

Hello @sundayha, we use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions on Stack Overflow or Segment Fault, then apply tag antd and react to your question.

@warmhug I import fastclick still did not solve the problem.

引入一下不调用,怎么起作用?为什么不仔细看官网文档?

@warmhug 😂 哎从Ant Design用过来的,就略过二级菜单的第一项了,以为都跟Ant Design一样就直接就用组件了。我的错,十分抱歉增加了你们的工作量。下次我会好好注意的。十分抱歉。

没事,也谢谢。这暴露了我们一个问题,我们文档也需要做优化。

我们也遇到了苹果手机segment点击不了的问题;是因为segment `item中div遮住了点击元素的问题。我们使用css简单避开了;

.am-segment-item-inner{
  display: none;
}

@HelloHxz your method solves my problem.thx.

Was this page helpful?
0 / 5 - 0 ratings