-
Notifications
You must be signed in to change notification settings - Fork 89
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
base: main
Are you sure you want to change the base?
fix(core/button): support added for form attribute in ix-button #1793
Conversation
|
submitButtonElement?: HTMLButtonElement; | ||
|
||
@Listen('click', { capture: true }) | ||
handleClick(event: Event) { | ||
if (this.disabled || this.loading) { | ||
event.stopPropagation(); | ||
event.preventDefault(); | ||
return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the return statement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented the change.
There was a problem hiding this 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
packages/angular-test-app/src/preview-examples/modal-form-ix-button-submit.ts
Outdated
Show resolved
Hide resolved
packages/react-test-app/src/preview-examples/modal-form-ix-button-submit.tsx
Outdated
Show resolved
Hide resolved
packages/vue-test-app/src/preview-examples/modal-form-ix-button-submit.vue
Outdated
Show resolved
Hide resolved
packages/html-test-app/src/preview-examples/modal-form-ix-button-submit.html
Outdated
Show resolved
Hide resolved
packages/angular-test-app/src/preview-examples/modal-form-ix-button-submit.html
Outdated
Show resolved
Hide resolved
|
(ngSubmit)="onSubmit(formRef)" | ||
> | ||
<div class="form-group"> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
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
@GayatriK2002 In general looks good, but please review the test app examples remove unnecessary classes and align this through the other examples also |
💡 What is the current behavior?
GitHub Issue Number: #1653
🆕 What is the new behavior?
🏁 Checklist
A pull request can only be merged if all of these conditions are met (where applicable):
pnpm run docs
)pnpm test
)pnpm lint
)pnpm build
, changes pushed)👨💻 Help & support