Fixed treegrid not working when id is text
@@ -1,6 +1,16 @@
ChangeLog
---------
+### 1.21.3
+
+- **Update:** Updated extend util instead of `$.extend`.
+- **Update:** - Fixed overwriting the `filterOptions` after rebuild.
+#### Extensions
+- **Update(export):** Fixed `exportTypes` option not working bug.
+- **Update(treegrid):** Fixed treegrid not working when id is text.
### 1.21.2
#### Core
@@ -77,11 +77,9 @@ $.BootstrapTable = class extends $.BootstrapTable {
initRow (item, idx, data, parentDom) {
if (this.treeEnable) {
- const parentId = parseInt(item[this.options.parentIdField], 10)
-
if (
- this.options.rootParentId === parentId ||
- !parentId
+ this.options.rootParentId === item[this.options.parentIdField] ||
+ !item[this.options.parentIdField]
) {
if (item._level === undefined) {
item._level = 0