Skip to content

Commit

Permalink
views/topics/new.html.slimのsubmitのclass属性にis-disabledを追加
Browse files Browse the repository at this point in the history
- JSコードの移行によって、フォームに入力がないときでもsubmitボタンが表示されてしまう問題が発生したため
  • Loading branch information
KishiKyousuke committed Jan 18, 2021
1 parent 60159a1 commit af55a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/topics/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
| 質問のコツを教えてください。就職先を選ぶポイントを教えてください。
| 最近買ってよかったものって何かありますか?
.form__actions
= f.submit class: 'a-ex-button is-md', value: 'この質問を登録', id: "js-main-action"
= f.submit class: 'a-ex-button is-md is-disabled', value: 'この質問を登録', id: "js-main-action"
.form__nav
= link_to '質問収集箱へ', room_path(@room), class: 'form__nav-link a-text-link'

0 comments on commit af55a6f

Please sign in to comment.