mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 04:34:06 -08:00
fix(editor): Fix NDV unexpected re-render (#7532)
This commit is contained in:
parent
233683ce1a
commit
2853fcff73
|
@ -28,7 +28,7 @@
|
|||
teleported
|
||||
size="small"
|
||||
:modelValue="currentNodeName"
|
||||
@update:modelValue="onSelect"
|
||||
@update:modelValue="onInputNodeChange"
|
||||
:no-data-text="$locale.baseText('ndv.input.noNodesFound')"
|
||||
:placeholder="$locale.baseText('ndv.input.parentNodes')"
|
||||
filterable
|
||||
|
@ -432,9 +432,9 @@ export default defineComponent({
|
|||
onUnlinkRun() {
|
||||
this.$emit('unlinkRun');
|
||||
},
|
||||
onSelect(value: string) {
|
||||
onInputNodeChange(value: string) {
|
||||
const index = this.parentNodes.findIndex((node) => node.name === value) + 1;
|
||||
this.$emit('select', value, index);
|
||||
this.$emit('changeInputNode', value, index);
|
||||
},
|
||||
onConnectionHelpClick() {
|
||||
if (this.activeNode) {
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
@unlinkRun="() => onUnlinkRun('input')"
|
||||
@runChange="onRunInputIndexChange"
|
||||
@openSettings="openSettings"
|
||||
@select="onInputSelect"
|
||||
@changeInputNode="onInputNodeChange"
|
||||
@execute="onNodeExecute"
|
||||
@tableMounted="onInputTableMounted"
|
||||
@itemHover="onInputItemHover"
|
||||
|
@ -710,7 +710,7 @@ export default defineComponent({
|
|||
pane,
|
||||
});
|
||||
},
|
||||
onInputSelect(value: string, index: number) {
|
||||
onInputNodeChange(value: string, index: number) {
|
||||
this.runInputIndex = -1;
|
||||
this.isLinkingEnabled = true;
|
||||
this.selectedInput = value;
|
||||
|
|
Loading…
Reference in a new issue