我将项目从bootstrap v.3更新到bootstrap v.4。我更新simple_form,现在,当我将simple_form输入标记指定为'hidden'时:
= f.input :id, as: :hidden, input_html: { value: nil }
它使用包装器创建一个输入:
<div class="form-group hidden integer optional"></div>
但在当前版本的bootstrap隐藏类已被删除。我怎样才能改变它,例如在'd-none'课上?
你这个吗?
= f.input :id, as: :hidden, input_html: { value: nil }, wrapper_html: { class: 'yourclass' }