Class: Forms::RootlessTagField
- Inherits:
-
TagField
- Object
- TagField
- Forms::RootlessTagField
- Defined in:
- lib/forms/rootless_tag_field.rb
Overview
A tag field WITHOUT its own reactive root — for use inside a Forms::Live form, which is itself the reactive root and carries the tag wire attributes (data-reactive-tags-field / data-reactive-filter-input, hoisted by Forms::Live#form_attributes). Emitting no nested root means the hidden tags field's nearest reactive-root ancestor is the
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#view_template ⇒ Object
17 18 19 20 21 |
# File 'lib/forms/rootless_tag_field.rb', line 17 def view_template # No reactive_root wrapper: a bare container that groups the body. The tag # attrs live on the ancestor <form>, not here. div(class: root_classes) { body } end |