Skip to content

Commit a15c492

Browse files
committed
native sort will be disabled upon remote function detection with sort set to true
1 parent aacb293 commit a15c492

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/BootstrapTable.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,14 @@ class BootstrapTable extends Component {
109109
const sortName = options.defaultSortName || options.sortName;
110110
const sortOrder = options.defaultSortOrder || options.sortOrder;
111111
const searchText = options.defaultSearch;
112+
112113
if (sortName && sortOrder) {
113114
this.store.setSortInfo(sortOrder, sortName);
114-
this.store.sort();
115+
if (this.props.remote().sort !== true) {
116+
this.store.sort();
117+
}
115118
}
116-
119+
117120
if (searchText) {
118121
this.store.search(searchText);
119122
}

0 commit comments

Comments
 (0)