Skip to content

Commit 963ecdf

Browse files
committed
feat: add v-bind="$attrs" to components with single input
1 parent 8d54857 commit 963ecdf

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

src/components/AmountInput/AmountInput.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@focus="isFocussed = true"
1313
@blur="isFocussed = false"
1414
@paste="$emit(AmountInputEvent.PASTE, $event)"
15+
v-bind="$attrs"
1516
v-model="formattedValue"
1617
/>
1718
</form>

src/components/AmountWithFee/AmountWithFee.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="amount-with-fee">
3-
<AmountInput class="value" v-model="liveAmount" :class="{ invalid: !isValid && liveAmount > 0 }" ref="amountInput$" />
3+
<AmountInput class="value" v-model="liveAmount" :class="{ invalid: !isValid && liveAmount > 0 }" v-bind="$attrs" ref="amountInput$" />
44
<div class="fee-section nq-text-s">
55
<div v-if="!isValid && liveAmount" class="nq-red"><slot name="insufficient-balance-error">{{ $t('Insufficient balance') }}</slot></div>
66
<div v-else>

src/components/CloseButton/CloseButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<button class="close-button nq-button-s" @mousedown.prevent>
2+
<button class="close-button nq-button-s" v-bind="$attrs" @mousedown.prevent>
33
<CloseIcon/>
44
</button>
55
</template>

src/components/LabelInput/LabelInput.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
@input="onInput"
1313
@blur="onBlur"
1414
@paste="$emit(LabelInputEvent.PASTE, $event)"
15+
v-bind="$attrs"
1516
ref="input$">
1617
</form>
1718
</template>

src/components/LongPressButton/LongPressButton.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
@blur="isPressed = false /* if focus moves away, release the button */"
99
@click.prevent.stop="$event.stopImmediatePropagation(); /* don't trigger handlers */"
1010
@submit.prevent.stop="$event.stopImmediatePropagation(); /* don't trigger handlers and default behavior */"
11+
v-bind="$attrs"
1112
>
1213
<span class="mix-blend-mode-mask">
1314
<transition name="transition-indicator">

0 commit comments

Comments
 (0)