@energie360/ui-library 0.1.46 → 0.1.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,9 +8,10 @@ interface Props {
8
8
  summary?: string
9
9
  description?: string
10
10
  nonEditable?: boolean
11
+ autoscroll?: boolean
11
12
  }
12
13
 
13
- defineProps<Props>()
14
+ const { autoscroll = false } = defineProps<Props>()
14
15
 
15
16
  const emit = defineEmits(['expanded', 'collapsed'])
16
17
  const rootEl = useTemplateRef('root')
@@ -29,9 +30,11 @@ const onEditToggle = () => {
29
30
  if (update && expanded.value) {
30
31
  update(editId)
31
32
 
32
- setTimeout(() => {
33
- rootEl.value.scrollIntoView()
34
- }, 80)
33
+ if (autoscroll) {
34
+ setTimeout(() => {
35
+ rootEl.value.scrollIntoView()
36
+ }, 80)
37
+ }
35
38
 
36
39
  return
37
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@energie360/ui-library",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",