Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
reset form on change
Sara Vieirace011f25a235
diff --git a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager.tsx b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager.tsxindex b99d75c741..c74c26a5b2 100644--- a/apps/designer/app/designer/features/sidebar-left/panels/asset-manager.tsx+++ b/apps/designer/app/designer/features/sidebar-left/panels/asset-manager.tsx@@ -16,7 +16,12 @@ export const TabContent = ({ assets }: { assets: Array<Asset> }) => {<Formmethod="post"encType="multipart/form-data"- onChange={(event) => submit(event.currentTarget)}+ onChange={(event) => {+ if (inputRef.current?.files) {+ submit(event.currentTarget);+ event.currentTarget.reset();+ }+ }}><inputaccept="image/*"