controlled checkboxes use `checked` not `value`
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
ef178b282c
commit
33a3cfead6
|
@ -136,8 +136,8 @@ export default class ShareDialog extends React.Component {
|
||||||
if (events.length > 0) {
|
if (events.length > 0) {
|
||||||
checkbox = <div>
|
checkbox = <div>
|
||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
value={this.state.linkSpecificEvent}
|
|
||||||
id="mx_ShareDialog_checkbox"
|
id="mx_ShareDialog_checkbox"
|
||||||
|
checked={this.state.linkSpecificEvent}
|
||||||
onClick={this.onLinkSpecificEventCheckboxClick} />
|
onClick={this.onLinkSpecificEventCheckboxClick} />
|
||||||
<label htmlFor="mx_ShareDialog_checkbox">
|
<label htmlFor="mx_ShareDialog_checkbox">
|
||||||
{ _t('Link to most recent message') }
|
{ _t('Link to most recent message') }
|
||||||
|
@ -160,8 +160,8 @@ export default class ShareDialog extends React.Component {
|
||||||
title = _t('Share Room Message');
|
title = _t('Share Room Message');
|
||||||
checkbox = <div>
|
checkbox = <div>
|
||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
value={this.state.linkSpecificEvent}
|
|
||||||
id="mx_ShareDialog_checkbox"
|
id="mx_ShareDialog_checkbox"
|
||||||
|
checked={this.state.linkSpecificEvent}
|
||||||
onClick={this.onLinkSpecificEventCheckboxClick} />
|
onClick={this.onLinkSpecificEventCheckboxClick} />
|
||||||
<label htmlFor="mx_ShareDialog_checkbox">
|
<label htmlFor="mx_ShareDialog_checkbox">
|
||||||
{ _t('Link to selected message') }
|
{ _t('Link to selected message') }
|
||||||
|
|
Loading…
Reference in New Issue