@veritree/ui 0.39.1 → 0.39.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.39.1",
3
+ "version": "0.39.2",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2,7 +2,9 @@
2
2
  <ul
3
3
  :id="id"
4
4
  :class="[
5
- headless ? 'listbox-list' : '-mx-3 max-h-[160px] w-auto overflow-y-auto',
5
+ headless
6
+ ? 'listbox-list'
7
+ : '-mx-3 max-h-[160px] w-auto overflow-y-auto scroll-auto',
6
8
  ]"
7
9
  >
8
10
  <slot></slot>
@@ -111,6 +111,7 @@ export default {
111
111
 
112
112
  // select new item
113
113
  if (this.items[newSelectedIndex]) {
114
+ this.index = newSelectedIndex;
114
115
  this.items[newSelectedIndex].select();
115
116
  }
116
117
  },
@@ -15,7 +15,7 @@
15
15
  :class="[
16
16
  headless
17
17
  ? `${this.component}-content`
18
- : `shadow-300 absolute z-50 grid overflow-x-hidden rounded-md ${this.classes} ${this.portalClass}`,
18
+ : `shadow-300 absolute z-50 grid overflow-hidden rounded-md ${this.classes} ${this.portalClass}`,
19
19
  ]"
20
20
  v-bind="$attrs"
21
21
  >