Skip to content

Commit

Permalink
fix: Action sheet bug #1007
Browse files Browse the repository at this point in the history
  • Loading branch information
rstoenescu committed Oct 17, 2017
1 parent 3c4b24e commit 3bded76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions src/components/action-sheet/ActionSheet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
>

<!-- iOS -->
<div v-once v-if="$q.theme === 'ios'">
<div v-if="$q.theme === 'ios'">
<div class="q-action-sheet">
<div v-if="title" class="modal-header" v-html="title"></div>

Expand Down Expand Up @@ -62,8 +62,8 @@
</div>
</div>

<!-- Material/Default for custom theme -->
<div v-once v-else>
<!-- Material theme -->
<div v-else>
<div v-if="title" class="modal-header" v-html="title"></div>

<div class="modal-scroll">
Expand Down Expand Up @@ -133,9 +133,6 @@ export default {
dismiss: Object
},
computed: {
opened () {
return this.$refs.dialog.active
},
contentCss () {
if (this.$q.theme === 'ios') {
return {backgroundColor: 'transparent'}
Expand All @@ -144,7 +141,7 @@ export default {
},
methods: {
close (fn) {
if (!this.opened) {
if (!this.$refs.dialog.active) {
return
}
const hasFn = typeof fn === 'function'
Expand Down
2 changes: 1 addition & 1 deletion src/utils/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default function (component) {
const node = document.createElement('div')
document.body.appendChild(node)

let vm = new Vue({
const vm = new Vue({
el: node,
data () {
return {props}
Expand Down

0 comments on commit 3bded76

Please sign in to comment.