Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions src/components/Actions/Actions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -221,24 +221,9 @@ export default {
<script>
import Tooltip from '../../directives/Tooltip'
import GenRandomId from '../../utils/GenRandomId'
import ValidateSlot from '../../utils/ValidateSlot'
import { t } from '../../l10n'
import Popover from '../Popover'

// This is the list of ALL the ALLOWED components
// in the default SLOT
const allowedChildren = [
'ActionButton',
'ActionCheckbox',
'ActionInput',
'ActionLink',
'ActionRadio',
'ActionRouter',
'ActionSeparator',
'ActionText',
'ActionTextEditable',
]

const focusableSelector = '.focusable'

/**
Expand Down Expand Up @@ -474,9 +459,6 @@ export default {
beforeMount() {
// init actions
this.initActions()

// filter invalid menu items
ValidateSlot(this.$slots.default, allowedChildren, this)
},
beforeUpdate() {
// ! since we're using $slots to manage our actions
Expand All @@ -487,7 +469,6 @@ export default {
// and the array is now reactive
// init actions
this.initActions()
ValidateSlot(this.$slots.default, allowedChildren, this)
},

methods: {
Expand Down