diff --git a/web/src/management/pages/edit/components/QuestionWrapper.vue b/web/src/management/pages/edit/components/QuestionWrapper.vue index f0b7daa7..fa25395e 100644 --- a/web/src/management/pages/edit/components/QuestionWrapper.vue +++ b/web/src/management/pages/edit/components/QuestionWrapper.vue @@ -102,8 +102,13 @@ const onCopy = () => { } const onMoveUp = () => { const index = props.qIndex + emit('changeSeq', { type: 'move', index, range: -1 }) isHover.value = false + + if (props.isSelected) { + emit('select', index - 1) + } } const onMouseenter = () => { @@ -114,8 +119,13 @@ const onMouseleave = () => { } const onMoveDown = () => { const index = props.qIndex + emit('changeSeq', { type: 'move', index, range: 1 }) isHover.value = false + + if (props.isSelected) { + emit('select', index + 1) + } } const onDelete = async () => { if (unref(hasShowLogic)) {