[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [BP][FIX] TrackerRules: Selecting items from the list doesn't work and requires multiple clicks
"Joel Mpunga \(@joelmpunga79\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <69f21d7d9dcb_3818f7e0101a3@gitlab-sidekiq-low-urgency-cpu-bound-v2-d59f77678-sd8r8.mail> |
Joel Mpunga pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki Commits: 11d00767 by Joel Mpunga at 2026-04-29T14:52:55+00:00 [BP][FIX] TrackerRules: Selecting items from the list doesn't work and requires multiple clicks --- * [FIX] TrackerRules: Selecting items from the list doesn't work and requires multiple clicks --- * [FIX] TrackerRules: Selecting items from the list doesn't work and requires multiple clicks See merge request tikiwiki/tiki!10064 (cherry picked from commit 83e6d0adfb36a02df8597503bf2601b431cd4fc6) a82e6c8b [FIX] TrackerRules: Selecting items from the list doesn't work and requires multiple clicks Co-authored-by: Joel Mpunga <[email protected]> See merge request tikiwiki/tiki!10103 - - - - - 5 changed files: - src/js/vue-mf/tracker-rules/src/components/Overrides/PredicateLogicalTypes.vue - src/js/vue-mf/tracker-rules/src/components/Overrides/PredicateOperators.vue - src/js/vue-mf/tracker-rules/src/components/Overrides/PredicateTargets.vue - src/js/vue-mf/tracker-rules/src/components/Rules/BoolArgument.vue - src/js/vue-mf/tracker-rules/src/components/Rules/DateArgument.vue Changes: ===================================== src/js/vue-mf/tracker-rules/src/components/Overrides/PredicateLogicalTypes.vue ===================================== @@ -3,7 +3,8 @@ v-if="isElementPlusActive" v-model="modelValue" placeholder="Select" - @change="() => emit('change', modelValue)" + :teleported="false" + @change="handleElementPlusChange" > <el-option v-for="logicalType in columns.logicalTypes" :key="logicalType.label" :label="logicalType.label" :value="logicalType.logicalType_id" /> </el-select> @@ -37,6 +38,10 @@ const isElementPlusActive = ref(!!window.elementPlus); const emit = defineEmits(["change"]); +const handleElementPlusChange = (value) => { + emit("change", value); +}; + const handleChange = (event) => { emit("change", event.target.value); }; ===================================== src/js/vue-mf/tracker-rules/src/components/Overrides/PredicateOperators.vue ===================================== @@ -3,7 +3,8 @@ v-if="isElementPlusActive" v-model="modelValue" placeholder="Select" - @change="() => emit('change', modelValue)" + :teleported="false" + @change="handleElementPlusChange" > <el-option v-for="operator in predicate.target.$type.$operators" :key="operator.label" :label="operator.label" :value="operator.operator_id" /> </el-select> @@ -35,6 +36,10 @@ const isElementPlusActive = ref(!!window.elementPlus); const emit = defineEmits(["change"]); +const handleElementPlusChange = (value) => { + emit("change", value); +}; + const handleChange = (event) => { emit("change", event.target.value); }; ===================================== src/js/vue-mf/tracker-rules/src/components/Overrides/PredicateTargets.vue ===================================== @@ -3,7 +3,8 @@ v-if="isElementPlusActive" v-model="modelValue" placeholder="Select" - @change="() => emit('change', modelValue)" + :teleported="false" + @change="handleElementPlusChange" > <el-option v-for="target in columns.targets" :key="target.label" :label="target.label" :value="target.target_id" /> </el-select> @@ -34,6 +35,10 @@ const isElementPlusActive = ref(!!window.elementPlus); const emit = defineEmits(["change"]); +const handleElementPlusChange = (value) => { + emit("change", value); +}; + const handleChange = (event) => { emit("change", event.target.value); }; ===================================== src/js/vue-mf/tracker-rules/src/components/Rules/BoolArgument.vue ===================================== @@ -4,7 +4,8 @@ v-if="isElementPlusActive" v-model="modelValue" placeholder="Select" - @change="() => emit('change', modelValue)" + :teleported="false" + @change="handleElementPlusChange" > <el-option label="true" value="1" /> <el-option label="false" value="0" /> @@ -34,6 +35,10 @@ const isElementPlusActive = ref(!!window.elementPlus); const emit = defineEmits(["change"]); +const handleElementPlusChange = (value) => { + emit("change", value); +}; + const handleChange = (event) => { emit("change", event.target.value); }; ===================================== src/js/vue-mf/tracker-rules/src/components/Rules/DateArgument.vue ===================================== @@ -5,7 +5,8 @@ v-model="modelValue" type="date" placeholder="Select date" - @change="() => emit('change', modelValue)" + :teleported="false" + @change="handleElementPlusChange" /> <input class="form-control" type="date" @change="handleChange" :value="value" v-else /> </div> @@ -29,6 +30,10 @@ const isElementPlusActive = ref(!!window.elementPlus); const emit = defineEmits(["change"]); +const handleElementPlusChange = (value) => { + emit("change", value); +}; + const handleChange = (event) => { emit("change", event.target.value); }; View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/11d0076786237ff753faec3643772ebf7055518e -- View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/11d0076786237ff753faec3643772ebf7055518e You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help _______________________________________________ TikiWiki-cvs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs