Skip to content

Commit dd20335

Browse files
committed
fix(QMenu/QDialog): attributes inheritance
1 parent c67a3ff commit dd20335

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

quasar/dev/components/global/dialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</div>
2424
</div>
2525

26-
<q-dialog v-model="alert" content-class="test-class">
26+
<q-dialog attr="test" v-model="alert" content-class="test-class">
2727
<q-card>
2828
<q-card-section>
2929
<div class="text-h6">

quasar/src/components/dialog/QDialog.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ export default Vue.extend({
217217
return h('div', {
218218
staticClass: 'q-dialog fullscreen no-pointer-events',
219219
class: this.contentClass,
220-
style: this.contentStyle
220+
style: this.contentStyle,
221+
attrs: this.$attrs
221222
}, [
222223
h('transition', {
223224
props: { name: 'q-transition--fade' }

quasar/src/mixins/portal.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ function fillInject (root) {
1818
}
1919

2020
export default {
21+
inheritAttrs: false,
22+
2123
props: {
2224
contentClass: [Array, String, Object],
2325
contentStyle: [Array, String, Object]

0 commit comments

Comments
 (0)