Skip to content

Commit

Permalink
feat(QFabAction): Allow using QFabAction outside QFab #8328 (#8360)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan authored Jan 22, 2021
1 parent adc3dd3 commit b02fac7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui/src/components/fab/QFabAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import QIcon from '../icon/QIcon.js'

import FabMixin from '../../mixins/fab.js'

import { noop } from '../../utils/event.js'
import { mergeSlot } from '../../utils/slot.js'

const anchorMap = {
Expand Down Expand Up @@ -38,7 +39,10 @@ export default Vue.extend({
inject: {
__qFab: {
default () {
console.error('QFabAction needs to be child of QFab')
return {
showing: true,
__onChildClick: noop
}
}
}
},
Expand Down

0 comments on commit b02fac7

Please sign in to comment.