Prevent clearing of trigger options when initialising (#15005)

This commit is contained in:
ian
2022-08-10 22:22:19 +08:00
committed by GitHub
parent 50963747f1
commit de7ac8ff14

View File

@@ -199,14 +199,18 @@ watch(
watch(
() => values.trigger,
() => {
(_, previousTrigger) => {
if (previousTrigger === undefined) return;
values.options = {};
}
);
watch(
() => values.options?.type,
(type) => {
(type, previousType) => {
if (previousType === undefined) return;
values.options = {
type,
};