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:
commit
fa15128bdb
1 changed files with 1 additions and 0 deletions
|
@ -2,6 +2,7 @@ import { show, hide } from '@utils';
|
||||||
|
|
||||||
export function showMotivation(event, state) {
|
export function showMotivation(event, state) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
motivationCancel();
|
||||||
show(document.querySelector(`.motivation.${state}`));
|
show(document.querySelector(`.motivation.${state}`));
|
||||||
hide(document.querySelector('.dropdown-items'));
|
hide(document.querySelector('.dropdown-items'));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue