Skip to content

Commit f39547c

Browse files
authored
Fix vanish context bug (#274)
1 parent a257932 commit f39547c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/phlex/rails/sgml.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ def set_original_view_context(view_context)
136136
# no-op (see https://github.com/ViewComponent/view_component/issues/2207)
137137
end
138138

139+
def vanish(...)
140+
# Quick fix because we need rails to handle the capture now
141+
capture(...)
142+
end
143+
139144
def capture(*args, &block)
140145
if capture_context
141146
return "" unless block

0 commit comments

Comments
 (0)