Skip to content

Commit

Permalink
fix: don't make ariaControls required
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Erslev Milfred committed Oct 17, 2023
1 parent 582bb3a commit 3235751
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/CustomScrollbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const props = defineProps({
// Aria and functionality
ariaControls: {
type: String,
required: true,
default: undefined,
},
ariaValuenow: {
type: [String, Number],
Expand Down Expand Up @@ -95,7 +95,7 @@ const targetData = ref({
});
const isVisible = computed(() => {
return targetData.value.canScroll || props.persistent;
return (props.ariaControls && targetData.value.canScroll) || props.persistent;
});
defineExpose({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@limbo-works/custom-scrollbar",
"type": "module",
"version": "0.0.7",
"version": "0.0.8",
"main": "./nuxt.config.js",
"scripts": {
"dev": "nuxi dev .playground",
Expand Down

0 comments on commit 3235751

Please sign in to comment.