Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dist/react-numeric-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
},
type: 'text',
style: noStyle ? null : _extends({}, css.input, !hasFormControl ? css['input:not(.form-control)'] : {}, this._inputFocus ? css['input:focus'] : {})
style: noStyle ? null : _extends({}, css.input, !hasFormControl && !style.input ? css['input:not(.form-control)'] : {}, this._inputFocus ? css['input:focus'] : {})
}, rest),
btnUp: {
onMouseEnter: undefined,
Expand Down Expand Up @@ -1231,7 +1231,7 @@ return /******/ (function(modules) { // webpackBootstrap
fontSize: 'inherit'
},

// The input with bootstrap class
// The input without bootstrap class
'input:not(.form-control)': {
border: '1px solid #ccc',
borderRadius: 2,
Expand Down
4 changes: 2 additions & 2 deletions docs/react-numeric-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
},
type: 'text',
style: noStyle ? null : _extends({}, css.input, !hasFormControl ? css['input:not(.form-control)'] : {}, this._inputFocus ? css['input:focus'] : {})
style: noStyle ? null : _extends({}, css.input, !hasFormControl && !style.input ? css['input:not(.form-control)'] : {}, this._inputFocus ? css['input:focus'] : {})
}, rest),
btnUp: {
onMouseEnter: undefined,
Expand Down Expand Up @@ -1231,7 +1231,7 @@ return /******/ (function(modules) { // webpackBootstrap
fontSize: 'inherit'
},

// The input with bootstrap class
// The input without bootstrap class
'input:not(.form-control)': {
border: '1px solid #ccc',
borderRadius: 2,
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ module.exports =
}
},
type: 'text',
style: noStyle ? null : _extends({}, css.input, !hasFormControl ? css['input:not(.form-control)'] : {}, this._inputFocus ? css['input:focus'] : {})
style: noStyle ? null : _extends({}, css.input, !hasFormControl && !style.input ? css['input:not(.form-control)'] : {}, this._inputFocus ? css['input:focus'] : {})
}, rest),
btnUp: {
onMouseEnter: undefined,
Expand Down
4 changes: 2 additions & 2 deletions src/NumericInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ class NumericInput extends Component
fontSize : 'inherit'
},

// The input with bootstrap class
// The input without bootstrap class
'input:not(.form-control)': {
border : '1px solid #ccc',
borderRadius : 2,
Expand Down Expand Up @@ -894,7 +894,7 @@ class NumericInput extends Component
style: noStyle ? null : Object.assign(
{},
css.input,
!hasFormControl ?
!hasFormControl && !style.input ?
css['input:not(.form-control)'] :
{},
this._inputFocus ? css['input:focus'] : {}
Expand Down