mirror of https://github.com/rancher/ui.git
Fix sortable-table on IDs with colons in them
This commit is contained in:
parent
54d397f961
commit
996e9addf1
|
|
@ -20,7 +20,7 @@
|
|||
groupByKey=groupTableBy
|
||||
groupByRef="namespace"
|
||||
extraGroups=emptyNamespaces
|
||||
pagingLabel="pagination.containerService"
|
||||
pagingLabel="pagination.workload"
|
||||
subSearchField="instances"
|
||||
extraSearchFields=extraSearchFields
|
||||
extraSearchSubFields=extraSearchSubFields
|
||||
|
|
|
|||
|
|
@ -564,12 +564,12 @@ export default Component.extend(Sortable, StickyHeader, {
|
|||
nodes.forEach((node) => {
|
||||
let id = get(node,'id');
|
||||
if ( id ) {
|
||||
let input = $(`input[nodeid=${id}]`);
|
||||
let input = $(`input[nodeid="${id}"]`);
|
||||
if ( input && input.length ) {
|
||||
// can't reuse the input ref here because the table has rerenderd and the ref is no longer good
|
||||
$(`input[nodeid=${id}]`).prop('checked', on);
|
||||
$(`input[nodeid="${id}"]`).prop('checked', on);
|
||||
|
||||
let tr = $(`input[nodeid =${id}]`).closest('tr');
|
||||
let tr = $(`input[nodeid="${id}"]`).closest('tr');
|
||||
let first = true;
|
||||
|
||||
while ( tr && (first || tr.hasClass('sub-row') ) ) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue