Fix #1219
parent
ba29686d46
commit
e366bedcf7
|
@ -21,6 +21,7 @@
|
||||||
"react/jsx-filename-extension": 0,
|
"react/jsx-filename-extension": 0,
|
||||||
"import/prefer-default-export": 0,
|
"import/prefer-default-export": 0,
|
||||||
"jsx-a11y/no-static-element-interactions": 0,
|
"jsx-a11y/no-static-element-interactions": 0,
|
||||||
|
"jsx-a11y/label-has-for": 0,
|
||||||
"import/no-extraneous-dependencies": [
|
"import/no-extraneous-dependencies": [
|
||||||
"error", {
|
"error", {
|
||||||
"devDependencies": true,
|
"devDependencies": true,
|
||||||
|
|
|
@ -65,7 +65,6 @@ const factory = (Check) => {
|
||||||
return (
|
return (
|
||||||
<label
|
<label
|
||||||
data-react-toolbox="checkbox"
|
data-react-toolbox="checkbox"
|
||||||
htmlFor={name}
|
|
||||||
className={className}
|
className={className}
|
||||||
onMouseEnter={onMouseEnter}
|
onMouseEnter={onMouseEnter}
|
||||||
onMouseLeave={onMouseLeave}
|
onMouseLeave={onMouseLeave}
|
||||||
|
|
|
@ -156,7 +156,7 @@ const factory = (Input) => {
|
||||||
</div>
|
</div>
|
||||||
{this.props.label
|
{this.props.label
|
||||||
? (
|
? (
|
||||||
<label htmlFor={this.props.name} className={theme.label}>
|
<label className={theme.label}>
|
||||||
{this.props.label}
|
{this.props.label}
|
||||||
{this.props.required ? <span className={theme.required}> * </span> : null}
|
{this.props.required ? <span className={theme.required}> * </span> : null}
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -206,7 +206,7 @@ const factory = (FontIcon) => {
|
||||||
{icon ? <FontIcon className={theme.icon} value={icon} /> : null}
|
{icon ? <FontIcon className={theme.icon} value={icon} /> : null}
|
||||||
<span className={theme.bar} />
|
<span className={theme.bar} />
|
||||||
{labelText
|
{labelText
|
||||||
? <label className={labelClassName} htmlFor={name}>
|
? <label className={labelClassName}>
|
||||||
{labelText}
|
{labelText}
|
||||||
{required ? <span className={theme.required}> * </span> : null}
|
{required ? <span className={theme.required}> * </span> : null}
|
||||||
</label>
|
</label>
|
||||||
|
|
|
@ -72,7 +72,6 @@ const factory = (Radio) => {
|
||||||
const _className = classnames(theme[this.props.disabled ? 'disabled' : 'field'], className);
|
const _className = classnames(theme[this.props.disabled ? 'disabled' : 'field'], className);
|
||||||
return (
|
return (
|
||||||
<label
|
<label
|
||||||
htmlFor={name}
|
|
||||||
data-react-toolbox="radio-button"
|
data-react-toolbox="radio-button"
|
||||||
className={_className}
|
className={_className}
|
||||||
onMouseEnter={onMouseEnter}
|
onMouseEnter={onMouseEnter}
|
||||||
|
|
|
@ -62,7 +62,7 @@ const factory = (Thumb) => {
|
||||||
} = this.props;
|
} = this.props;
|
||||||
const _className = classnames(theme[disabled ? 'disabled' : 'field'], className);
|
const _className = classnames(theme[disabled ? 'disabled' : 'field'], className);
|
||||||
return (
|
return (
|
||||||
<label data-react-toolbox="switch" className={_className} htmlFor={this.props.name}>
|
<label data-react-toolbox="switch" className={_className}>
|
||||||
<input
|
<input
|
||||||
{...others}
|
{...others}
|
||||||
checked={this.props.checked}
|
checked={this.props.checked}
|
||||||
|
|
|
@ -9,7 +9,6 @@ module.exports = {
|
||||||
devtool: 'cheap-module-eval-source-map',
|
devtool: 'cheap-module-eval-source-map',
|
||||||
entry: [
|
entry: [
|
||||||
'webpack-hot-middleware/client',
|
'webpack-hot-middleware/client',
|
||||||
'babel-polyfill',
|
|
||||||
'./spec/index.js'
|
'./spec/index.js'
|
||||||
],
|
],
|
||||||
output: {
|
output: {
|
||||||
|
|
Loading…
Reference in New Issue