Skip to content

Commit

Permalink
use Dropdown instead of Menu in new catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-kamil committed Nov 21, 2024
1 parent f143494 commit c96b275
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ import CopyToClipboardLink from './components/CopyToClipboardLink.vue'
import BottomModal from './components/BottomModal.vue'
import NewsletterSignupFormController from './components/newsletter-signup/FormController.vue'
import NewsletterSignupBottomModalController from './components/newsletter-signup/BottomModalController.vue'
import { Menu } from 'floating-vue'
import { Dropdown } from 'floating-vue'

import 'floating-vue/dist/style.css'

Expand All @@ -84,7 +84,7 @@ createApp({
},
})
.use(ZiggyVue)
.component('VMenu', Menu)
.component('VDropdown', Dropdown)
.component('featured-piece-click-tracker', FeaturedPieceClickTracker)
.component('filter-sort-by', FilterSortBy)
.component('filter-checkbox', FilterCheckbox)
Expand Down
6 changes: 3 additions & 3 deletions resources/js/components/catalog-new/Popover.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup>
import { ref } from 'vue'
import { Menu as VMenu } from 'floating-vue'
import { Dropdown as VDropdown } from 'floating-vue'
import CaretUpIcon from './icons/CaretUp.vue'
Expand All @@ -13,7 +13,7 @@ const isOpen = ref(false)
</script>

<template>
<VMenu
<VDropdown
:triggers="['click']"
:shown="isOpen"
:distance="10"
Expand Down Expand Up @@ -43,5 +43,5 @@ const isOpen = ref(false)
</div>
</div>
</template>
</VMenu>
</VDropdown>
</template>

0 comments on commit c96b275

Please sign in to comment.