Hide other motivation fields when switching between states
This commit is contained in:
parent
ca5f31e374
commit
2fb1b19e09
1 changed files with 1 additions and 0 deletions
|
@ -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'));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue