-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Bugfix: scope CSS of input elements #2589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
dd6ed5b
745f0f3
aa85b3c
494e23d
3e6b531
1623592
53bdf71
b156dc4
c4ca03b
11af805
ffcc9eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,18 +61,22 @@ export default class Input extends PureComponent { | |
const valprops = | ||
this.props.type === 'number' ? {} : {value: this.state.value}; | ||
const {loading_state} = this.props; | ||
let {className} = this.props; | ||
className = 'dash-input' + (className ? ` ${className}` : ''); | ||
return ( | ||
<input | ||
data-dash-is-loading={ | ||
(loading_state && loading_state.is_loading) || undefined | ||
} | ||
className={className} | ||
ref={this.input} | ||
onBlur={this.onBlur} | ||
onChange={this.onChange} | ||
onKeyPress={this.onKeyPress} | ||
{...valprops} | ||
{...omit( | ||
[ | ||
'className', | ||
Comment on lines
87
to
+89
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI we use this a lot but I'd love to get rid of this |
||
'debounce', | ||
'value', | ||
'n_blur', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
input:invalid { | ||
input.dash-input:invalid { | ||
outline: solid red; | ||
} | ||
|
||
input:valid { | ||
input.dash-input:valid { | ||
outline: none black; | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.