Skip to content

Commit 1900ea4

Browse files
committed
Fixed Bug with respect to submit form
vue-numeric-input component appears within form tags, then it will attempt to submit the form every time the updown button is clicked. Issue fixed by setting button type for button controls.
1 parent 4feafcb commit 1900ea4

File tree

8 files changed

+8
-7
lines changed

8 files changed

+8
-7
lines changed

dist/vue-numeric-input.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/_config.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
max-width: 980px;
55
margin: 0 auto;
66
padding: 45px;
7-
}</style></head><body><div id=app></div><script type=text/javascript src=static/js/manifest.js></script><script type=text/javascript src=static/js/vendor.js></script><script type=text/javascript src=static/js/app.js></script></body></html>
7+
}</style></head><body><div id=app></div><script type=text/javascript src=static/js/manifest.js></script><script type=text/javascript src=static/js/vendor.js></script><script type=text/javascript src=static/js/app.js></script></body></html>

docs/static/js/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/js/app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/static/js/manifest.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-numeric-input",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Vue Numeric Input Component",
55
"author": "JayeshLab <helloiamjayesh@gmail.com>",
66
"license": "MIT",

src/vue-numeric-input.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
:readonly="readonly"
2121
>
2222
<button
23+
type="button"
2324
v-if="controls"
2425
class="btn btn-decrement"
2526
@mousedown="start(decrement)"
@@ -30,6 +31,7 @@
3031
<i class="btn-icon"></i>
3132
</button>
3233
<button
34+
type="button"
3335
v-if="controls"
3436
class="btn btn-increment"
3537
@mousedown="start(increment)"

0 commit comments

Comments
 (0)