Skip to content

Commit 93d4c27

Browse files
committed
feat(editor2): clear level input after closing dropdown
1 parent 0329143 commit 93d4c27

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/editor2/LevelSelect.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ export const LevelSelect: FC<LevelSelectProps> = ({
225225
}}
226226
popoverProps={{
227227
minimal: true,
228+
onClosed() {
229+
// 关闭下拉框时重置输入框,防止用户在未手动选择关卡时,误以为已输入的内容就是已选择的关卡
230+
updateQuery('', false)
231+
},
228232
}}
229233
/>
230234
<Tooltip2

0 commit comments

Comments
 (0)