Skip to content

Commit

Permalink
Add capture_compatibility_patch_enabled as option
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaier authored Mar 7, 2023
1 parent 7fef076 commit d9de520
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/known_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ Some workarounds include:
- Using FormBuilder with [Action View helpers](https://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html).
- Using a FormBuilder overriding all field helpers to render a ViewComponent so each field can be customized individually (for example, [view_component-form](https://github.com/pantographe/view_component-form)).
- Using a lightweight re-implementation of ViewComponent. For example, [Primer ViewComponents](https://github.com/primer/view_components) implemented [`ActsAsComponent`](https://github.com/primer/view_components/blob/main/lib/primer/forms/acts_as_component.rb) which is used in the context of `FormBuilder`.
- Enable the capture compatibility patch with `config.view_component.capture_compatibility_patch_enabled = true`.
Note that this patch is considered experimental.

## Forms don't use the default `FormBuilder`

Expand Down

0 comments on commit d9de520

Please sign in to comment.