diff --git a/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx b/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx index 8122bbfda7813..ffb7bd2610fc5 100644 --- a/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx +++ b/src/plugins/controls/public/time_slider/embeddable/time_slider_embeddable.tsx @@ -12,6 +12,7 @@ import moment from 'moment-timezone'; import { Embeddable, IContainer } from '@kbn/embeddable-plugin/public'; import { ReduxEmbeddableTools, ReduxEmbeddablePackage } from '@kbn/presentation-util-plugin/public'; import type { TimeRange } from '@kbn/es-query'; +import { KibanaThemeProvider } from '@kbn/kibana-react-plugin/public'; import React from 'react'; import ReactDOM from 'react-dom'; import { Subscription } from 'rxjs'; @@ -270,16 +271,18 @@ export class TimeSliderControlEmbeddable extends Embeddable< const { Wrapper: TimeSliderControlReduxWrapper } = this.reduxEmbeddableTools; ReactDOM.render( - - { - this.onTimesliceChange(value); - const range = value ? value[TO_INDEX] - value[FROM_INDEX] : undefined; - this.onRangeChange(range); - }} - /> - , + + + { + this.onTimesliceChange(value); + const range = value ? value[TO_INDEX] - value[FROM_INDEX] : undefined; + this.onRangeChange(range); + }} + /> + + , node ); };