mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 16:09:50 +03:00
react-dock
This commit is contained in:
parent
36ff68ac55
commit
9c82273206
|
@ -385,7 +385,7 @@ export default class Dock extends Component<Props, State> {
|
|||
|
||||
handleDimClick = () => {
|
||||
if (this.props.dimMode === 'opaque') {
|
||||
this.props.onVisibleChange && this.props.onVisibleChange(false);
|
||||
if (this.props.onVisibleChange) this.props.onVisibleChange(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -471,7 +471,7 @@ export default class Dock extends Component<Props, State> {
|
|||
break;
|
||||
}
|
||||
|
||||
this.props.onSizeChange && this.props.onSizeChange(size);
|
||||
if (this.props.onSizeChange) this.props.onSizeChange(size);
|
||||
|
||||
if (!isControlled) {
|
||||
this.setState({ size });
|
||||
|
|
|
@ -48,7 +48,7 @@ function prefixProp<Value>(key: string, value: Value) {
|
|||
export default function autoprefix(style: CSSProperties) {
|
||||
return Object.keys(style).reduce(
|
||||
(obj, key) =>
|
||||
vendorSpecificProperties.indexOf(key) !== -1
|
||||
vendorSpecificProperties.includes(key)
|
||||
? {
|
||||
...obj,
|
||||
...prefixProp(key, style[key as keyof CSSProperties]),
|
||||
|
|
Loading…
Reference in New Issue
Block a user