Clear map key select after adding an entry

This commit is contained in:
Misode
2024-03-11 13:29:51 +01:00
parent 16475e0ba2
commit 9dbcf46a53
+1
View File
@@ -208,6 +208,7 @@ const renderHtml: RenderHook = {
if (path.model.get(path.push(key)) === undefined) {
path.model.set(path.push(key), DataModel.wrapLists(children.default()))
}
keyPath.set('')
}
const blockState = config.validation?.validator === 'block_state_map' ? states?.[relativePath(path, config.validation.params.id).get()] : null
const keysSchema = blockState?.properties