app/components/avo/tab_group_component.html.erb in avo-3.0.0.pre18 vs app/components/avo/tab_group_component.html.erb in avo-3.0.0.pre19

- old
+ new

@@ -23,10 +23,10 @@ is_current_tab = active_tab_name.to_s == tab.name.to_s # On edit screens we want to load each tab because we wnst the DOM to have the fields present on form submission. # If you have a field which is in the second tab and it's required, the form submission will fail because the required field is not in view, and we don't want that. # We also want to load the current tab - should_lazy_load = if @view.to_s.in?(['edit', 'new', 'update', 'create']) + should_lazy_load = if @view.in?(%w[edit new update create]) false else !is_current_tab end