diff --git a/bump.config.ts b/bump.config.ts
new file mode 100644
index 00000000..17e27cd8
--- /dev/null
+++ b/bump.config.ts
@@ -0,0 +1,9 @@
+export default {
+ files: [
+ 'package.json',
+ 'packages/core/package.json',
+ 'packages/icons/package.json',
+ 'packages/visuals/package.json',
+ 'packages/vue3/package.json',
+ ],
+};
diff --git a/package.json b/package.json
index 0fc57eb9..4bfc8c89 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@youcan/ui",
- "version": "2.6.5",
+ "version": "2.6.7",
"packageManager": "pnpm@8.10.0",
"engines": {
"node": "^20.9.0",
@@ -14,11 +14,11 @@
"lint": "pnpm eslint && pnpm stylelint",
"lint:fix": "pnpm eslint --fix && pnpm stylelint --fix",
"prepare": "pnpm -r run stub",
- "release": "pnpm build && bumpp package.json packages/*/package.json --commit \"[chore]: Release v\" --push --tag && pnpm -r release"
+ "release": "pnpm build && bumpp --commit \"[chore]: Release v\" --push --tag && pnpm -r release"
},
"devDependencies": {
"@youcan/eslint-config": "2.5.6-beta.7",
- "bumpp": "^8.2.1",
+ "bumpp": "^9.4.1",
"eslint": "^8.33.0",
"mitata": "^0.1.6",
"postcss-html": "^1.5.0",
diff --git a/packages/alto/src/components/Color/ColorInput.vue b/packages/alto/src/components/Color/ColorInput.vue
index 7bab66a5..a805cb58 100644
--- a/packages/alto/src/components/Color/ColorInput.vue
+++ b/packages/alto/src/components/Color/ColorInput.vue
@@ -1,5 +1,5 @@
diff --git a/packages/alto/src/components/Dropdown/Dropdown.vue b/packages/alto/src/components/Dropdown/Dropdown.vue
index 5120a56a..fa15ab5e 100644
--- a/packages/alto/src/components/Dropdown/Dropdown.vue
+++ b/packages/alto/src/components/Dropdown/Dropdown.vue
@@ -266,8 +266,15 @@ function setItems(items: DropdownValue[]) {
itemsList.value = Array.isArray(items) ? items : [];
}
+function handleWindowScroll() {
+ if (show.value) {
+ show.value = false;
+ }
+}
+
onMounted(() => {
window.addEventListener('resize', handleResize);
+ window.addEventListener('scroll', handleWindowScroll);
dropdown.value?.addEventListener('keydown', handleKeypress);
@@ -278,6 +285,7 @@ onMounted(() => {
onUnmounted(() => {
window.removeEventListener('resize', handleResize);
window.removeEventListener('keydown', handleKeypress);
+ window.removeEventListener('scroll', handleWindowScroll);
});
watch(() => props.items, (newValue) => {
diff --git a/packages/core/package.json b/packages/core/package.json
index 9505a679..f0eaa696 100644
--- a/packages/core/package.json
+++ b/packages/core/package.json
@@ -1,7 +1,7 @@
{
"name": "@youcan/ui-core",
"type": "module",
- "version": "2.6.5",
+ "version": "2.6.7",
"description": "",
"author": "YouCan (https://github.com/youcan-shop/)",
"homepage": "https://github.com/youcan-shop/youcan-ui",
diff --git a/packages/icons/package.json b/packages/icons/package.json
index e9c60413..9f7d387f 100644
--- a/packages/icons/package.json
+++ b/packages/icons/package.json
@@ -1,7 +1,7 @@
{
"name": "@youcan/ui-icons",
"type": "module",
- "version": "2.6.5",
+ "version": "2.6.7",
"description": "YouCan icon set in Iconify JSON format",
"author": "YouCan (https://github.com/youcan-shop/)",
"license": "MIT",
diff --git a/packages/visuals/package.json b/packages/visuals/package.json
index d8b5f6a5..71e7f1e8 100644
--- a/packages/visuals/package.json
+++ b/packages/visuals/package.json
@@ -1,7 +1,7 @@
{
"name": "@youcan/ui-visuals",
"type": "module",
- "version": "2.6.5",
+ "version": "2.6.7",
"description": "YouCan visuals set in Iconify JSON format",
"author": "YouCan (https://github.com/youcan-shop/)",
"license": "MIT",
diff --git a/packages/vue3/package.json b/packages/vue3/package.json
index 87348f64..89caab70 100644
--- a/packages/vue3/package.json
+++ b/packages/vue3/package.json
@@ -1,6 +1,6 @@
{
"name": "@youcan/ui-vue3",
- "version": "2.6.5",
+ "version": "2.6.7",
"description": "YouCan Vue3 components library",
"author": "YouCan (https://github.com/youcan-shop/)",
"license": "MIT",
diff --git a/packages/vue3/src/components/ResourcePicker/Internal/Resource.vue b/packages/vue3/src/components/ResourcePicker/Internal/Resource.vue
index f551612b..edf87a91 100644
--- a/packages/vue3/src/components/ResourcePicker/Internal/Resource.vue
+++ b/packages/vue3/src/components/ResourcePicker/Internal/Resource.vue
@@ -45,7 +45,7 @@ function handleCheck(e: Event) {