Skip to content

Commit 9454077

Browse files
authored
Update README.md
1 parent 38c5ec6 commit 9454077

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

src/components/form-spinbutton/README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -351,28 +351,24 @@ The `change` event is emitted once the user releases the mouse button (when pres
351351
inrement or decrement buttons) or when the user releases the <kbd>ArrowDown</kbd> or
352352
<kbd>ArrowUp</kbd> key. This can be handy when you need to debounce the input.
353353

354-
The folowing example illustrates teh difference between the `input` and `change` events.
354+
The folowing example illustrates the difference between the `input` and `change` events.
355355
Click and hold the increment or decrement button (or use the up/down arrow keys).
356356

357357
```html
358358
<template>
359-
<template>
360-
<b-row>
361-
<b-col md="6">
362-
<label for="sb-input">Spin button - input event</label>
363-
<b-form-spinbutton id="sb-input" v-model="valueA" wrap></b-form-spinbutton>
364-
<p>Value: {{ valueA }}</p>
365-
</b-col>
366-
<b-col md="6">
367-
<label for="sb-change" class="">Spin button - change event</label>
368-
<b-form-spinbutton id="sb-change" :value="valueB" @change="valueB = $event" wrap></b-form-spinbutton>
369-
<p>Value: {{ valueB }}</p>
370-
</b-col>
359+
<div>
360+
<label for="sb-input">Spin button - input and change events</label>
361+
<b-form-spinbutton
362+
id="sb-input"
363+
v-model="valueA"
364+
@change="valueB = $event"
365+
wrap
366+
></b-form-spinbutton>
367+
<p>Input event: {{ valueA }}</p>
368+
<p>Change event: {{ valueB }}</p>
371369
</b-row>
372370
</template>
373371

374-
</template>
375-
376372
<script>
377373
export default {
378374
data() {

0 commit comments

Comments
 (0)