回答編集履歴
1
具体例追加
answer
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
buttonタグは、typeを指定しないとデフォルトでは type="submit" になるので、
|
2
2
|
そのあたりではないでしょうか。
|
3
|
+
<button type="button" 〜> のようにtype="button" を指定してみるとうまく行くかもしれません。
|
3
4
|
|
4
5
|
[https://developer.mozilla.org/ja/docs/Web/HTML/Element/button](https://developer.mozilla.org/ja/docs/Web/HTML/Element/button)
|