Skip to content

Commit 6a885a8

Browse files
Pablo Henrique Penha SilvaPablo Henrique Penha Silva
authored andcommitted
small fixes
1 parent 133259c commit 6a885a8

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

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)