mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Move comment
This commit is contained in:
parent
fb9b14ec51
commit
53129cafc7
1 changed files with 1 additions and 1 deletions
|
@ -34,12 +34,12 @@ export default class StyledCheckbox extends React.PureComponent<IProps, IState>
|
||||||
|
|
||||||
constructor(props: IProps) {
|
constructor(props: IProps) {
|
||||||
super(props);
|
super(props);
|
||||||
|
// 56^10 so unlikely chance of collision.
|
||||||
this.id = "checkbox_" + randomString(10);
|
this.id = "checkbox_" + randomString(10);
|
||||||
}
|
}
|
||||||
|
|
||||||
public render() {
|
public render() {
|
||||||
const { children, className, ...otherProps } = this.props;
|
const { children, className, ...otherProps } = this.props;
|
||||||
// 56^10 so unlikely chance of collision.
|
|
||||||
return <span className={"mx_Checkbox " + className}>
|
return <span className={"mx_Checkbox " + className}>
|
||||||
<input id={this.id} {...otherProps} type="checkbox" />
|
<input id={this.id} {...otherProps} type="checkbox" />
|
||||||
<label htmlFor={this.id}>
|
<label htmlFor={this.id}>
|
||||||
|
|
Loading…
Reference in a new issue