Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

MODUL-1153 - M-Form not reactive when dynamically adding controls to form groups #1094

Conversation

lucmartin3elien
Copy link
Contributor

@lucmartin3elien lucmartin3elien commented Jul 25, 2019

@ulaval/modul-components

PR Checklist

  • Provide a small description of the changes introduced by this PR
    Used standard VueJs operators to add and delete an item in an array
  • Include links to issues
    https://jira.dti.ulaval.ca/browse/MODUL-1153
  • Openshift deployment requested
  • Include this section in the release notes
  • Other info

@lucmartin3elien lucmartin3elien added this to the 1.0.0-beta.116 milestone Jul 25, 2019
@lucmartin3elien lucmartin3elien self-assigned this Jul 25, 2019
@Mboulianne
Copy link
Contributor

Mboulianne commented Jul 25, 2019

Moi si j'étais toi je parlerais à Alvéric.. on a aussi eu un besoin d'ajout dynamique et tout fonctionne même sans le fix

@lucmartin3elien
Copy link
Contributor Author

Moi si j'étais toi je parlerais à Alvéric.. on a aussi eu un besoin d'ajout dynamique et tout fonctionne même sans le fix

J'ai vu le code d'Alvéric, ce n'est pas pour le même besoin. J'ai corrigé un problème dans le code actuel qui empêchait la réactivité dans certains scénarios. Il faut utiliser '$set' et '$delete' lorsque l'on ajoute et enlève des items dans un array réactif. Maintenant ça marche bien pour mon cas d'utilisation.

@chuckmah chuckmah requested a review from guignol1981 July 25, 2019 18:47
@chuckmah chuckmah merged commit 9618026 into develop Jul 31, 2019
@chuckmah chuckmah deleted the feature/MODUL-1153_M_form_non_reactif__ajout_dynamique_controles branch July 31, 2019 19:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants