Merge pull request #3769 from betagouv/fix-glitch-motivations-dropdown

Instructeur : masque les détails lors de l'alternance entre plusieurs motivations différentes
This commit is contained in:
Pierre de La Morinerie 2019-04-10 11:53:00 +02:00 committed by GitHub
commit fa15128bdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ import { show, hide } from '@utils';
export function showMotivation(event, state) {
event.preventDefault();
motivationCancel();
show(document.querySelector(`.motivation.${state}`));
hide(document.querySelector('.dropdown-items'));
}