fix: prevent AI fill inputs freezing (#3226)

This commit is contained in:
HugoCasa
2024-02-14 21:28:20 +01:00
committed by GitHub
parent ca0b2418af
commit 4492279c50
@@ -224,7 +224,11 @@
propertyType === 'static' ||
arg?.expr?.length > 0}
on:showExpr={(e) => {
monaco?.setSuggestion(e.detail)
setTimeout(() => {
if (monaco && propertyType === 'javascript') {
monaco.setSuggestion(e.detail)
}
}, 0)
}}
on:setExpr={(e) => {
arg = {
@@ -404,7 +408,6 @@
focused = false
}}
autoHeight
preventTabOnEmpty={enableAi}
/>
</div>
<DynamicInputHelpBox />