AllenFang / AllenFang/react-bootstrap-table

got warning message when editable property is function which return false

未關閉
#1,909 2 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
2.2k
分支
761
PR 合併指標
30 天內沒有已合併 PR

描述

When:
- editable property of TableHeaderColumn is a function
- the function returns false value

Then:
there is a warning message in console.

```
warning.js?6327:33 Warning: Received `false` for a non-boolean attribute `type`.

If you want to write it to the DOM, pass a string instead: type="false" or type={value.toString()}.

If you used to conditionally omit it with type={condition && value}, pass type={condition ? value : undefined} instead.
in input (created by TableEditColumn)
in td (created by TableEditColumn)
in TableEditColumn (created by TableBody)
in tr (created by TableRow)
in TableRow (created by TableBody)
in tbody (created by TableBody)
in table (created by TableBody)
in div (created by TableBody)
in TableBody (created by BootstrapTable)
in div (created by BootstrapTable)
in div (created by BootstrapTable)
in BootstrapTable (created by DocumentList)
in div (created by DocumentList)
```

this line sets ``

https://github.com/AllenFang/react-bootstrap-table/blob/ec9f036698362a5e4296920049ad3283ee66356b/src/Editor.js#L14

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。