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

๐Ÿ›[BUG] Warning: Received true for a non-boolean attribute compact when using valueType "digitRange" ProColumn #7427

Closed
lyallo opened this issue Jul 26, 2023 · 0 comments ยท Fixed by #7496
Labels
โญ•๏ธ bug Something isn't working form

Comments

@lyallo
Copy link

lyallo commented Jul 26, 2023

ๆ้—ฎๅ‰ๅ…ˆ็œ‹็œ‹๏ผš

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

๐Ÿ› bug ๆ่ฟฐ

Using a ProColumn with a valueType of "digitRange" causes a console warning

Received `true` for a non-boolean attribute `compact`

๐Ÿ“ท ๅค็Žฐๆญฅ้ชค

https://codesandbox.io/s/silly-ben-fq725s?file=/App.tsx

๐Ÿž ๆœŸๆœ›็ป“ๆžœ

This doesn't cause any problems with using the column or filter, but obviously it's not ideal to see the warning in the console.

๐Ÿ’ป ๅค็Žฐไปฃ็ 

const columns: ProColumns<GithubIssueItem>[] = [
  {
    title: "Some numerical column",
    dataIndex: "someNumericalColumn",
    valueType: "digitRange"
  },
  ...

ยฉ ็‰ˆๆœฌไฟกๆฏ

  • ProComponents ็‰ˆๆœฌ: 2.6.8
  • umi ็‰ˆๆœฌ: 4.0.33
  • ๆต่งˆๅ™จ็Žฏๅขƒ Chrome
  • ๅผ€ๅ‘็Žฏๅขƒ Windows 11

๐Ÿš‘ ๅ…ถไป–ไฟกๆฏ

image

@lyallo lyallo changed the title ๐Ÿ›[BUG] Warning: Received true for a non-boolean attribute compact when using valueType "digitRange" ProColumn ๐Ÿ›[BUG] Warning: Received true for a non-boolean attribute compact when using valueType "digitRange" ProColumn Jul 26, 2023
@chenshuai2144 chenshuai2144 added โญ•๏ธ bug Something isn't working form labels Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
โญ•๏ธ bug Something isn't working form
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants