fix(editor): Fix rlc input selection issue when not in list mode (#20004)

This commit is contained in:
Svetoslav Dekov 2025-09-29 09:16:06 +03:00 committed by GitHub
parent 6433ff12da
commit c6443c39da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -620,6 +620,12 @@ function onInputChange(value: INodeParameterResourceLocator['value']): void {
emit('update:modelValue', params);
}
function onInputMouseDown(event: MouseEvent): void {
if (isListMode.value) {
event.preventDefault();
}
}
function onModeSelected(value: string): void {
if (typeof props.modelValue !== 'object') {
emit('update:modelValue', { __rl: true, value: props.modelValue, mode: value });
@ -1094,7 +1100,7 @@ function removeOverride() {
@update:model-value="onInputChange"
@focus="onInputFocus"
@blur="onInputBlur"
@mousedown.prevent
@mousedown="onInputMouseDown"
>
<template v-if="isListMode" #suffix>
<i