Skip to content

Commit

Permalink
Better fix for #1205 / #1225 which fixes #1294
Browse files Browse the repository at this point in the history
  • Loading branch information
vnbaaij committed Jan 11, 2024
1 parent 2379917 commit d6d8e29
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Core/Components/Button/FluentButton.razor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ export function updateProxy(id) {
}
const element = document.getElementById(id);

if (!!element && !!element.form) {
element.proxy.setAttribute("form", element.form.id)
if (element.form) {
if (element.form.id !== '') {
element.proxy.setAttribute("form", element.form.id)
}
else {
console.warn("When the submit button is placed outside of the EditForm, make sure to supply an id attribute to the EditForm.");
}
}
}

0 comments on commit d6d8e29

Please sign in to comment.