Skip to content

Commit 0d3401c

Browse files
author
Pablo Henrique
authored
Merge pull request vuematerial#856 from vuematerial/menu-fix
Menu fix
2 parents ae0c34a + 6a885a8 commit 0d3401c

File tree

7 files changed

+11
-6
lines changed

7 files changed

+11
-6
lines changed

docs/src/pages/components/Menu.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@
529529
</md-menu-content>
530530
</md-menu>
531531

532-
<md-button class="md-raised md-primary" @click="$refs.menu.open">Open contact card</md-button>
532+
<md-button class="md-raised md-primary" @click="$refs.menu.open()">Open contact card</md-button>
533533
</div>
534534

535535
<div slot="code">

docs/src/pages/components/Tabs.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@
440440
</docs-component>
441441
</page-content>
442442
</template>
443+
443444
<style>
444445
.label-with-new-badge {
445446
font-weight: bolder;

docs/versions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
["0.5.1", "0.5.2", "0.6.0", "0.6.1", "0.6.2", "0.6.3", "0.7.0", "0.7.1", "0.7.2", "0.7.2", "0.7.2", "0.7.2"]
1+
["0.5.1", "0.5.2", "0.6.0", "0.6.1", "0.6.2", "0.6.3", "0.7.0", "0.7.1", "0.7.2", "0.7.3"]

src/components/mdCheckbox/mdCheckbox.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<md-ink-ripple :md-disabled="disabled" />
66
</div>
77

8-
<label :for="id || name" class="md-checkbox-label" v-if="$slots.default" @click="toggleCheck">
8+
<label :for="id || name" class="md-checkbox-label" v-if="$slots.default" @click.prevent="toggleCheck">
99
<slot></slot>
1010
</label>
1111
</div>
@@ -27,7 +27,7 @@
2727
mixins: [theme],
2828
data() {
2929
return {
30-
checked: this.value
30+
checked: this.value || false
3131
};
3232
},
3333
computed: {

src/components/mdChips/mdChips.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
props: {
4343
value: Array,
4444
disabled: Boolean,
45+
debounce: {
46+
type: Number,
47+
default: 1E2
48+
},
4549
mdInputId: String,
4650
mdInputName: String,
4751
mdInputPlaceholder: String,

src/components/mdInputContainer/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default {
33
value: [String, Number],
44
debounce: {
55
type: Number,
6-
default: 3E2
6+
default: 1E2
77
},
88
disabled: Boolean,
99
required: Boolean,

src/components/mdInputContainer/mdInputContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<span class="md-count" v-if="enableCounter">{{ inputLength }} / {{ counterLength }}</span>
66

7-
<md-button tabindex="-1" class="md-icon-button md-toggle-password" @click="togglePasswordType" v-if="mdHasPassword">
7+
<md-button tabindex="-1" class="md-icon-button md-toggle-password" @click.prevent="togglePasswordType" v-if="mdHasPassword">
88
<md-icon>{{ showPassword ? 'visibility_off' : 'visibility' }}</md-icon>
99
</md-button>
1010

0 commit comments

Comments
 (0)