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