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

Checkbox Indeterminate state uncertain behaviour #5387

Closed
francescovallone opened this issue Nov 16, 2023 · 1 comment
Closed

Checkbox Indeterminate state uncertain behaviour #5387

francescovallone opened this issue Nov 16, 2023 · 1 comment

Comments

@francescovallone
Copy link

TuSimple/naive-ui version (版本)

2.35.0

Vue version (Vue 版本)

3.4.0-alpha.1

Browser and its version (浏览器及其版本)

Versione 119.0.1 (64 bit)

System and its version (系统及其版本)

MacOS(14.0)

Node version (Node 版本)

v20.6.1

Reappearance link (重现链接)

https://www.naiveui.com/en-US/os-theme/components/checkbox

Reappearance steps (重现步骤)

  1. Change value to the checkbox;
  2. Set it to indeterminate;
  3. The value is now stuck to indeterminate;
  4. Removing the indeterminate give back the previous value;

Expected results (期望的结果)

I would expect the indeterminate "state" to be treated as a third possible value for the checkbox: [true, false, undefined]

  1. Change the value to the checkbox;
  2. Set it to indeterminate;
  3. If I change value the indeterminate value is overwritten;

Actual results (实际的结果)

The indeterminate "state" supress all the other values.

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Nov 16, 2023
@OrbisK
Copy link
Collaborator

OrbisK commented Dec 20, 2023

This behaviour is intended. If :indeterminate="true" it will override the value.

@OrbisK OrbisK closed this as completed Dec 20, 2023
@OrbisK OrbisK removed the untriaged need to sort label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants