mirror of
https://github.com/wassname/slider.git
synced 2026-09-09 11:35:22 +08:00
fix: should limit CSS scope, close: #147
This commit is contained in:
+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