Skip to content

Commit 9819378

Browse files
committed
fix: remove enum property when enum==''
1 parent 3eeb65e commit 9819378

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/json-schema-editor/main.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,11 @@ export default {
289289
changeEnumValue (e) {
290290
const pickType = this.pickValue.type
291291
const value = e.target.value
292+
293+
if(!value || value===''){
294+
this.advancedValue.enum = null
295+
return
296+
}
292297
var arr = value.split('\n')
293298
294299
if (pickType === 'string') {

0 commit comments

Comments
 (0)