Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabPicker 多级联动选择器在一级选项仅有一级时,未清空其他多级选项的子选项。 #252

Closed
Lorca-R opened this issue Dec 13, 2018 · 0 comments
Labels
bug Something isn't working @Components Components related

Comments

@Lorca-R
Copy link

Lorca-R commented Dec 13, 2018

Mand Mobile Version

OS Version & Browser Version

chrome 70.0,3538

Node Version, Package Management Tool

Recurring Links

Recurring Steps

举例:data结构如下。

{
  data: [
        {
          label: '每周',
          value: 'week',
          children: [
            {
              label: '周日',
              value: '0',
            },
            {
              label: '周一',
              value: '1',
            },
          ],
        },
        {
          label: '每日',
          value: 'day',
          children: [],
        },
      ],
}
  1. 一级选项选择“每周”、二级选项选择“周一”并确定。
    image

  2. 再次打开 TabPicker ,一级选项选择“每日”。此时可以看到二级选项的"周一"并未被清除,并且还能选择二级选项。

image

image

Expectant Behaviors

当一级选项仅有一级时,选择它后应当清除其他多级选项的选择结果

Actual Behaviors

当已经选择其他多级选项后,重新打开 TabPicker 再选择仅有一级的选项,上次选择的子选项并未被清除。

@supergaojian supergaojian added the bug Something isn't working label Dec 14, 2018
@xxyan0205 xxyan0205 added the @Components Components related label Dec 16, 2018
xxyan0205 pushed a commit that referenced this issue Dec 16, 2018
* fix(tab-picker):clear other children options for issue #252

* fix(tab-picker):revert test demo for issue #252
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @Components Components related
Projects
None yet
Development

No branches or pull requests

3 participants