mirror of
https://github.com/wassname/slider.git
synced 2026-10-29 13:40:35 +08:00
fix: should limit CSS scope, close: #147
This commit is contained in:
1 parent
d7e6b9d9be
commit
b6d8f389ef
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -228,7 +228,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.rc-tooltip {
|
||||
.@{prefixClass}-tooltip {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
top: -9999px;
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ export default class Handle extends React.Component {
|
||||
const isTooltipVisible = dragging || this.state.isTooltipVisible;
|
||||
return (
|
||||
<Tooltip
|
||||
prefixCls={prefixCls.replace('slider', 'tooltip')}
|
||||
prefixCls={`${prefixCls}-tooltip`}
|
||||
placement="top"
|
||||
visible={isTooltipVisible}
|
||||
overlay={<span>{tipFormatter(value)}</span>}
|
||||
|
||||
Reference in new issue
Block a user