-
Couldn't load subscription status.
- Fork 1
Hotfix: Submit button onClick and props #115
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
Conversation
|
|
||
| export type SubmitProps = BaseFormButtonProps; | ||
| export interface SubmitProps extends BaseFormButtonProps, HTMLElementProps<HTMLButtonElement> { | ||
| fieldIds?: string[]; |
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 is this for?
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.
Removed: 9b52929
| "yargs": "^8.0.2" | ||
| }, | ||
| "dependencies": { | ||
| "@microsoft/ts-command-line": "^2.0.2", |
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.
Should be in devDependencies
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.
Fixed: 479b296
| this.FormStore.InitiateFormSubmit(); | ||
| } | ||
|
|
||
| if (this.props.onClick != null) { |
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.
Also, rename the function OnButtonClick to onClick. It's a bit more unified.
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.
Actually, in case it's protected, it should be named OnClick 👍
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.
Fixed: 9b52929
| @@ -0,0 +1,276 @@ | |||
| import * as path from "path"; | |||
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.
Why is the file name called rush-tools-new?
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.
Removed old rush-tools file and renamed rush-tools-new to rush-tools.
Fixed: 479b296
| } | ||
| } | ||
|
|
||
| private consoleWrite(...text: string[]): void { |
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?.. Why do you need this function?
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.
At first it was writing to console with a prefix, later on I removed it.
Fixed: 479b296
Added missing HTMLProps in submit button
Implemented onClick in submit button
WIP Updated rush-tools