Skip to content

Commit

Permalink
Merge b749512 into e73b856
Browse files Browse the repository at this point in the history
  • Loading branch information
corinagum committed Sep 26, 2019
2 parents e73b856 + b749512 commit 859bd88
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -58,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [1871](https://github.com/microsoft/BotFramework-Emulator/pull/1871)
- [1872](https://github.com/microsoft/BotFramework-Emulator/pull/1872)
- [1873](https://github.com/microsoft/BotFramework-Emulator/pull/1873)
- [1879](https://github.com/microsoft/BotFramework-Emulator/pull/1879)
- [1880](https://github.com/microsoft/BotFramework-Emulator/pull/1880)

- [client] Fixed an issue with the transcripts path input inside of the resource settings dialog in PR [1836](https://github.com/microsoft/BotFramework-Emulator/pull/1836)
Expand Down
14 changes: 12 additions & 2 deletions packages/sdk/ui-react/src/widget/textField/textField.tsx
Expand Up @@ -70,7 +70,13 @@ export class TextField extends Component<TextFieldProps, {}> {
return (
<div className={`${styles.inputContainer} ${inputContainerClassName}`}>
{this.labelNode}
<input className={inputClassName} id={this.inputId} ref={this.setInputRef} {...inputProps} />
<input
aria-labelledby="errormessagesub"
className={inputClassName}
id={this.inputId}
ref={this.setInputRef}
{...inputProps}
/>
{children}
{this.errorNode}
</div>
Expand All @@ -96,6 +102,10 @@ export class TextField extends Component<TextFieldProps, {}> {

protected get errorNode(): React.ReactNode {
const { errorMessage } = this.props;
return errorMessage ? <sub className={styles.sub}>{errorMessage}</sub> : null;
return errorMessage ? (
<sub id="errormessagesub" className={styles.sub}>
{errorMessage}
</sub>
) : null;
}
}

0 comments on commit 859bd88

Please sign in to comment.