Merge pull request #8699 from mfo/US/8661

a11y(bloc-repetable): amélioration des interactions avec les répétitions d'un bloc répétable
This commit is contained in:
mfo 2023-03-31 14:39:23 +00:00 committed by GitHub
commit 54d88e7dd0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
41 changed files with 173 additions and 52 deletions

View file

@ -7,8 +7,9 @@ class Champs::RepetitionController < ApplicationController
end
def remove
champ = policy_scope(Champ).includes(:champs).find(params[:champ_id])
champ.champs.where(row_id: params[:row_id]).destroy_all
@champ = policy_scope(Champ).includes(:champs).find(params[:champ_id])
@champ.champs.where(row_id: params[:row_id]).destroy_all
@champ.reload
@row_id = params[:row_id]
end
end