Do not expand sorted array
This commit is contained in:
parent
3cf43de54c
commit
ad35e6fc16
|
@ -92,19 +92,17 @@ import { compileJSONPointer } from '../../utils/jsonPointer';
|
||||||
<col width="75%">
|
<col width="75%">
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tbody>
|
<tbody>
|
||||||
{#if rootPath.length > 0}
|
<tr>
|
||||||
<tr>
|
<th>Path</th>
|
||||||
<th>Path</th>
|
<td>
|
||||||
<td>
|
<input
|
||||||
<input
|
class="path"
|
||||||
class="path"
|
type="text"
|
||||||
type="text"
|
readonly
|
||||||
readonly
|
value={rootPath.length > 0 ? stringifyPath(rootPath) : '(whole document)'}
|
||||||
value={stringifyPath(rootPath)}
|
/>
|
||||||
/>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
|
||||||
{/if}
|
|
||||||
{#if jsonIsArray && (properties.length > 1 || selectedProperty === undefined) }
|
{#if jsonIsArray && (properties.length > 1 || selectedProperty === undefined) }
|
||||||
<tr>
|
<tr>
|
||||||
<th>Property</th>
|
<th>Property</th>
|
||||||
|
|
|
@ -276,12 +276,7 @@
|
||||||
rootPath,
|
rootPath,
|
||||||
onSort: async (operations) => {
|
onSort: async (operations) => {
|
||||||
console.log('onSort', rootPath, operations)
|
console.log('onSort', rootPath, operations)
|
||||||
|
|
||||||
patch(operations, selection)
|
patch(operations, selection)
|
||||||
|
|
||||||
await tick()
|
|
||||||
|
|
||||||
handleExpand(rootPath, true, false)
|
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
...SIMPLE_MODAL_OPTIONS,
|
...SIMPLE_MODAL_OPTIONS,
|
||||||
|
|
Loading…
Reference in New Issue