Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#2022·vue-flow

[BUG]: selectionKeyCode Prop Invalid Type Value

Author: NathanRohrerCreated Feb 12, 2026Updated Jun 9, 2026
Labelsbugquestion

Is there an existing issue for this?

  • I have searched the existing issues and this is a new bug.

Current Behavior

The selectionKeyCode prop for the VueFlow component expects a value of Boolean or null. This produces warnings in the dev console when manually setting the value to any String value.

Expected Behavior

Manually setting the selectionKeyCode prop's value to a string should not produce an invalid prop type check warning log.

Steps To Reproduce

  1. set the selectionKeyCode prop value on the VueFlow component to 'Shift'

Minimal reproduction of the issue with CodeSandbox

No response

Relevant log output

bash
[Vue warn]: Invalid prop: type check failed for prop "selectionKeyCode". Expected Boolean | Null, got String with value "Shift". 
  at <VueFlow key=0 modelValue= (19) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}]0: {id: 'trigger', type: 'trigger-node', position: {…}, data: {…}}1: {id: 'answer_call_0', type: 'answer-call', position: {…}, data: {…}}2: {id: 'collect_input_0', type: 'collect-input', position: {…}, data: {…}}3: {id: 'send_rcs_0', type: 'send-rcs', position: {…}, data: {…}}4: {id: 'say_play_2', type: 'say-play', position: {…}, data: {…}}5: {id: 'hang_up_call_0', type: 'hang-up-call', position: {…}, data: {…}}6: {id: 'say_play_3', type: 'say-play', position: {…}, data: {…}}7: {id: 'say_play_4', type: 'say-play', position: {…}, data: {…}}8: {source: 'trigger', target: 'answer_call_0', sourceHandle: 'trigger-inbound-call', targetHandle: 'answer_call_0', id: 'j1ex37'}9: {source: 'trigger', target: 'answer_call_0', sourceHandle: 'trigger-outbound-call', targetHandle: 'answer_call_0', id: 'a3wto8'}10: {source: 'answer_call_0', target: 'collect_input_0', sourceHandle: 'answer_call_0', targetHandle: 'collect_input_0', id: 'eglvnm'}11: {source: 'collect_input_0', target: 'say_play_2', sourceHandle: 'collect_input_0-no-input', targetHandle: 'say_play_2', id: 'sfgd1'}12: {source: 'collect_input_0', target: 'say_play_2', sourceHandle: 'collect_input_0-else', targetHandle: 'say_play_2', id: 'r32cbl'}13: {source: 'collect_input_0', target: 'send_rcs_0', sourceHandle: 'collect_input_0-condition-5ejlnk', targetHandle: 'send_rcs_0', id: '7f7fpl'}14: {source: 'send_rcs_0', target: 'say_play_3', sourceHandle: 'send_rcs_0-sent', targetHandle: 'say_play_3', id: 'f5j4ny'}15: {source: 'send_rcs_0', target: 'say_play_4', sourceHandle: 'send_rcs_0-failure', targetHandle: 'say_play_4', id: '5oizlk'}16: {source: 'say_play_2', target: 'hang_up_call_0', sourceHandle: 'say_play_2', targetHandle: 'hang_up_call_0', id: '305b3'}17: {source: 'say_play_3', target: 'hang_up_call_0', sourceHandle: 'say_play_3', targetHandle: 'hang_up_call_0', id: '728otd'}18: {source: 'say_play_4', target: 'hang_up_call_0', sourceHandle: 'say_play_4', targetHandle: 'hang_up_call_0', id: '10smck'}length: 19[[Prototype]]: Array(0) onUpdate:modelValue= (2) [ƒ, ƒ]  ... > 
  at <FlowBuilder class="FlowBuilder" > 
  at <MainApp flowGuid="ba6bee3b-77e6-4573-95e5-8cce5855133f" onBack=null onRedirectAssign=null  ... >
warn$1 @ chunk-Y5JECS2V.js?v=b25482d5:2396
validateProp @ chunk-Y5JECS2V.js?v=b25482d5:5722
validateProps @ chunk-Y5JECS2V.js?v=b25482d5:5694
initProps @ chunk-Y5JECS2V.js?v=b25482d5:5384
setupComponent @ chunk-Y5JECS2V.js?v=b25482d5:8918
mountComponent @ chunk-Y5JECS2V.js?v=b25482d5:6449
processComponent @ chunk-Y5JECS2V.js?v=b25482d5:6415
patch @ chunk-Y5JECS2V.js?v=b25482d5:5931
patchBlockChildren @ chunk-Y5JECS2V.js?v=b25482d5:6285
patchElement @ chunk-Y5JECS2V.js?v=b25482d5:6203
processElement @ chunk-Y5JECS2V.js?v=b25482d5:6062
patch @ chunk-Y5JECS2V.js?v=b25482d5:5919
componentUpdateFn @ chunk-Y5JECS2V.js?v=b25482d5:6639
run @ chunk-Y5JECS2V.js?v=b25482d5:1772
runIfDirty @ chunk-Y5JECS2V.js?v=b25482d5:1810
callWithErrorHandling @ chunk-Y5JECS2V.js?v=b25482d5:2480
flushJobs @ chunk-Y5JECS2V.js?v=b25482d5:2679
Promise.then
queueFlush @ chunk-Y5JECS2V.js?v=b25482d5:2594
queueJob @ chunk-Y5JECS2V.js?v=b25482d5:2589
effect2.scheduler @ chunk-Y5JECS2V.js?v=b25482d5:6681
trigger @ chunk-Y5JECS2V.js?v=b25482d5:1800
endBatch @ chunk-Y5JECS2V.js?v=b25482d5:642
trigger @ chunk-Y5JECS2V.js?v=b25482d5:918
set @ chunk-Y5JECS2V.js?v=b25482d5:2116
set @ chunk-Y5JECS2V.js?v=b25482d5:10334
created @ FlowBuilder.vue?t=1770913903042:373
await in created
callWithErrorHandling @ chunk-Y5JECS2V.js?v=b25482d5:2480
callWithAsyncErrorHandling @ chunk-Y5JECS2V.js?v=b25482d5:2487
callHook @ chunk-Y5JECS2V.js?v=b25482d5:4998
applyOptions @ chunk-Y5JECS2V.js?v=b25482d5:4916
finishComponentSetup @ chunk-Y5JECS2V.js?v=b25482d5:9069
handleSetupResult @ chunk-Y5JECS2V.js?v=b25482d5:9023
setupStatefulComponent @ chunk-Y5JECS2V.js?v=b25482d5:8992
setupComponent @ chunk-Y5JECS2V.js?v=b25482d5:8920
mountComponent @ chunk-Y5JECS2V.js?v=b25482d5:6449
processComponent @ chunk-Y5JECS2V.js?v=b25482d5:6415
patch @ chunk-Y5JECS2V.js?v=b25482d5:5931
componentUpdateFn @ chunk-Y5JECS2V.js?v=b25482d5:6639
run @ chunk-Y5JECS2V.js?v=b25482d5:1772
(anonymous) @ chunk-Y5JECS2V.js?v=b25482d5:2789
callWithErrorHandling @ chunk-Y5JECS2V.js?v=b25482d5:2480
flushJobs @ chunk-Y5JECS2V.js?v=b25482d5:2679
Promise.then
queueFlush @ chunk-Y5JECS2V.js?v=b25482d5:2594
queueJob @ chunk-Y5JECS2V.js?v=b25482d5:2589
reload @ chunk-Y5JECS2V.js?v=b25482d5:2787
(anonymous) @ chunk-Y5JECS2V.js?v=b25482d5:2821
(anonymous) @ FlowBuilder.vue?t=1770913892334:533
(anonymous) @ client:34
(anonymous) @ client:218
(anonymous) @ client:193
queueUpdate @ client:193
await in queueUpdate
(anonymous) @ client:638
handleMessage @ client:636
(anonymous) @ client:546Understand this warning
FlowBuilder.vue?t=1770913903042:373 [Vue warn]: Invalid prop: type check failed for prop "selectionKeyCode". Expected Boolean | Null, got String with value "Shift". 
  at <VueFlow key=0 modelValue= (19) [Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object), Proxy(Object)] onUpdate:modelValue= (2) [ƒ, ƒ]  ... > 
  at <FlowBuilder class="FlowBuilder" > 
  at <MainApp flowGuid="ba6bee3b-77e6-4573-95e5-8cce5855133f" onBack=null onRedirectAssign=null  ... >

Anything else?

No response

Source: bcakmakoglu/vue-flow

View original on GitHubView discussion on GitHub