IxButton with type="submit" does not accept a "form" attribute and thus can't be used in a modal footer. #1653
Labels
Contribution welcome 👨💻
This issue is open for contributions from the community
type: enhancement
New feature or request
Workflow: Issue created
JIRA issue is created and will be analyzed
Prerequisites
What happened?
Angular:
19.0.6
Siemens IX:
2.6.1
The following (shortened) example for a "form inside the modal content, yet submit button in the model footer outside of the form" works with a regular
<button>
, by passing the form'sid
attribute to the button asform
attribute.However, due to the upcoming Bootstrap removal, we would prefer to not style the button ourselves (with
btn btn-primary
). We would prefer to just use the<ix-button>
here. However, that doesn't allow aform
attribute and therefore doesn't submit the form correctly.Possible solution
Maybe it is sufficient to pass the
form
attribute from the<ix-button>
along to the shadow DOM<button>
.What type of frontend framework are you seeing the problem on?
Angular
Which version of iX do you use?
v2.6.1
Code to produce this issue.
The text was updated successfully, but these errors were encountered: