Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buttonを押したらsubmitされてしまうバグの修正 #239

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

OdenTakashi
Copy link
Owner

@OdenTakashi OdenTakashi commented Aug 7, 2024

変更概要

buttonの中にリンクがある状態だったので、buttonを削除しリンクにクラスを振る対応をした

@OdenTakashi
Copy link
Owner Author

buttonタグはデフォルでsubmitタイプが付与されるので、submitしたくないならtype="button"オプションを付与する

@OdenTakashi OdenTakashi force-pushed the bug/modify_button_bug branch from 0674323 to 9aa3713 Compare August 7, 2024 14:43
@OdenTakashi
Copy link
Owner Author

# buttonタグにtypeを振る時のslim記法
button.class[type='button']

@OdenTakashi OdenTakashi merged commit af374c4 into main Aug 7, 2024
2 checks passed
@OdenTakashi OdenTakashi deleted the bug/modify_button_bug branch August 7, 2024 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant