Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(core/button): support added for form attribute in ix-button #1793

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

GayatriK2002
Copy link
Contributor

💡 What is the current behavior?

  • Form attribute support was not available for ix-button.
  • Issue with submitting the form using form ID when the submit button is outside the form.

GitHub Issue Number: #1653

🆕 What is the new behavior?

  • Form attribute support added in ix-button.
  • Now form can be submitted using form ID when passed to form attribute.

🏁 Checklist

A pull request can only be merged if all of these conditions are met (where applicable):

  • 🦮 Accessibility (a11y) features were implemented
  • 🗺️ Internationalization (i18n) - no hard coded strings
  • 📲 Responsiveness - components handle viewport changes and content overflow gracefully
  • 📄 Documentation was reviewed/updated (pnpm run docs)
  • 🧪 Unit tests were added/updated and pass (pnpm test)
  • 📸 Visual regression tests were added/updated and pass (Guide)
  • 🧐 Static code analysis passes (pnpm lint)
  • 🏗️ Successful compilation (pnpm build, changes pushed)

👨‍💻 Help & support

Copy link

changeset-bot bot commented Mar 24, 2025

⚠️ No Changeset found

Latest commit: fda4b05

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

submitButtonElement?: HTMLButtonElement;

@Listen('click', { capture: true })
handleClick(event: Event) {
if (this.disabled || this.loading) {
event.stopPropagation();
event.preventDefault();
return;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the return statement

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implemented the change.

@GayatriK2002 GayatriK2002 marked this pull request as ready for review March 24, 2025 11:21
Copy link
Collaborator

@danielleroux danielleroux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You added framework integrations but missed the html-test-app

Copy link

sonarqubecloud bot commented Apr 9, 2025

(ngSubmit)="onSubmit(formRef)"
>
<div class="form-group">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this from-group do and why do you need it here?

id="create-resource-form"
#formRef="ngForm"
class="form"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which purpose has this class here?

<IxInput
label="Name"
type="text"
className="form-control"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this class is here not necessary

@danielleroux
Copy link
Collaborator

@GayatriK2002 In general looks good, but please review the test app examples remove unnecessary classes and align this through the other examples also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants