switch to onChange
This commit is contained in:
parent
fe803d52d0
commit
fbc6f1c97a
1 changed files with 8 additions and 8 deletions
|
@ -114,7 +114,7 @@ class Preferences extends React.Component {
|
||||||
<div className="preference__vertical-list">
|
<div className="preference__vertical-list">
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={this.props.indentWithSpace}
|
onChange={this.props.indentWithSpace}
|
||||||
aria-label="indentation with space"
|
aria-label="indentation with space"
|
||||||
name="indentation"
|
name="indentation"
|
||||||
id="indentation-space"
|
id="indentation-space"
|
||||||
|
@ -125,7 +125,7 @@ class Preferences extends React.Component {
|
||||||
<label htmlFor="indentation-space" className="preference__option">Spaces</label>
|
<label htmlFor="indentation-space" className="preference__option">Spaces</label>
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={this.props.indentWithTab}
|
onChange={this.props.indentWithTab}
|
||||||
aria-label="indentation with tab"
|
aria-label="indentation with tab"
|
||||||
name="indentation"
|
name="indentation"
|
||||||
id="indentation-tab"
|
id="indentation-tab"
|
||||||
|
@ -141,7 +141,7 @@ class Preferences extends React.Component {
|
||||||
<div className="preference__options">
|
<div className="preference__options">
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={() => this.props.setAutosave(true)}
|
onChange={() => this.props.setAutosave(true)}
|
||||||
aria-label="autosave on"
|
aria-label="autosave on"
|
||||||
name="autosave"
|
name="autosave"
|
||||||
id="autosave-on"
|
id="autosave-on"
|
||||||
|
@ -152,7 +152,7 @@ class Preferences extends React.Component {
|
||||||
<label htmlFor="autosave-on" className="preference__option">On</label>
|
<label htmlFor="autosave-on" className="preference__option">On</label>
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={() => this.props.setAutosave(false)}
|
onChange={() => this.props.setAutosave(false)}
|
||||||
aria-label="autosave off"
|
aria-label="autosave off"
|
||||||
name="autosave"
|
name="autosave"
|
||||||
id="autosave-off"
|
id="autosave-off"
|
||||||
|
@ -168,7 +168,7 @@ class Preferences extends React.Component {
|
||||||
<div className="preference__options">
|
<div className="preference__options">
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={() => this.props.setLintWarning(true)}
|
onChange={() => this.props.setLintWarning(true)}
|
||||||
aria-label="lint warning on"
|
aria-label="lint warning on"
|
||||||
name="lint warning"
|
name="lint warning"
|
||||||
id="lint-warning-on"
|
id="lint-warning-on"
|
||||||
|
@ -179,7 +179,7 @@ class Preferences extends React.Component {
|
||||||
<label htmlFor="lint-warning-on" className="preference__option">On</label>
|
<label htmlFor="lint-warning-on" className="preference__option">On</label>
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={() => this.props.setLintWarning(false)}
|
onChange={() => this.props.setLintWarning(false)}
|
||||||
aria-label="lint warning off"
|
aria-label="lint warning off"
|
||||||
name="lint warning"
|
name="lint warning"
|
||||||
id="lint-warning-off"
|
id="lint-warning-off"
|
||||||
|
@ -197,7 +197,7 @@ class Preferences extends React.Component {
|
||||||
<div className="preference__options">
|
<div className="preference__options">
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={() => this.props.setTextOutput(true)}
|
onChange={() => this.props.setTextOutput(true)}
|
||||||
aria-label="text output on"
|
aria-label="text output on"
|
||||||
name="text output"
|
name="text output"
|
||||||
id="text-output-on"
|
id="text-output-on"
|
||||||
|
@ -208,7 +208,7 @@ class Preferences extends React.Component {
|
||||||
<label htmlFor="text-output-on" className="preference__option">On</label>
|
<label htmlFor="text-output-on" className="preference__option">On</label>
|
||||||
<input
|
<input
|
||||||
type="radio"
|
type="radio"
|
||||||
onClick={() => this.props.setTextOutput(false)}
|
onChange={() => this.props.setTextOutput(false)}
|
||||||
aria-label="text output off"
|
aria-label="text output off"
|
||||||
name="text output"
|
name="text output"
|
||||||
id="text-output-off"
|
id="text-output-off"
|
||||||
|
|
Loading…
Reference in a new issue