Skip to content

Conversation

@MartynasZilinskas
Copy link

  • Added missing HTMLProps in submit button

  • Implemented onClick in submit button

  • WIP Updated rush-tools


export type SubmitProps = BaseFormButtonProps;
export interface SubmitProps extends BaseFormButtonProps, HTMLElementProps<HTMLButtonElement> {
fieldIds?: string[];
Copy link
Member

Choose a reason for hiding this comment

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

What is this for?

Copy link
Author

@MartynasZilinskas MartynasZilinskas Jul 12, 2017

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",
Copy link
Member

Choose a reason for hiding this comment

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

Should be in devDependencies

Copy link
Author

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) {
Copy link
Member

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.

Copy link
Member

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 👍

Copy link
Author

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";
Copy link
Member

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?

Copy link
Author

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 {
Copy link
Member

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?

Copy link
Author

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

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.

3 participants