Skip to content

Commit 587a839

Browse files
minor fixes
1 parent 8a60d9a commit 587a839

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ This component does not depend on any other package, except Vue 3
8484
| open-level | `0` | Number, String, Array | Default is `0` or folded. Number or String like (1 or '2' or 3) will open all levels up to that level. Array of levels like [2,3,5] will pre-open specifically those levels only, if 0 is not specified, it will still be folded initially. |
8585
| open-specific | `[]` | Array | Array of elements to pre-open. For ex. `window` object, has `window.navigator` and `window.history`, history has `window.history.state` objects. To pre-open them specify [`'window'`,`'window.history'`,`'window.history.state'`] or just `['window.history.state']` as it requires all of the above objects to be open already. If objects are not descendants then specify separately like this `['window.history.state',` ` 'window.navigator']` |
8686
| focus | `null` | String, Number | Focus element to open, similar to òpen-specific`, but just 1 item. The browser will open and scroll to that element if it is specified. |
87-
| focus-offset-x | `-35` | Number | X plane offset when scrolling to focused element |
88-
| focus-offset-y | `-15` | Number | Y plane offset when scrolling to focused element |
89-
| focus-delay | `300` | Number | Delay in milliseconds, before focusing |
87+
| focus-sticky | `false` | Boolean | Focus sticky, will keep 'sticking' to the focused element, even when object undergoes changes or you open and close levels, `false` by default. |
88+
| focus-offset-x | `-35` | Number | X plane offset when scrolling to focused element |
89+
| focus-offset-y | `-15` | Number | Y plane offset when scrolling to focused element |
90+
| focus-delay | `300` | Number | Delay in milliseconds, before focusing |
9091
| preview | `5` | Number, Boolean `false` | Number of elements to preview when viewing an object or an array. This can be made less or more depending on performance needs. Less is faster, because there is less rendering. It can also be fully turned off by setting `0` or `false` |
9192
| preview-initial | `true` | Boolean | Initial object's preview can be turned off, to make the item take less space on the screen. Instead of `obj {1, 2, 3, 4, 5}`, it will just be `obj {...}` on the first level, when you open it, it will use `preview` value for the rest of the items. |
9293
| escape-quotes | `false` | Boolean | Strings will have escaped double quotes, " will be converted to \\" |

vue-dd/dist/index.es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ const mn = Ke({
19791979
},
19801980
showEmit(e) {
19811981
let { type: t, pointer: i, focusElement: o } = e;
1982-
this.emitFn(this, "show", e), console.log("show", i), this.saveFocus && this.useFocus === i && this.setFocus();
1982+
this.emitFn(this, "show", e), this.saveFocus && this.useFocus === i && this.setFocus();
19831983
},
19841984
open(e) {
19851985
const { open: t, pointer: i, level: o, user: s } = e;

0 commit comments

Comments
 (0)