remove no longer required div wrapper around ValidatedDualRange (#70188)
* remove no longer required div wrapper around ValidatedDualRange * tslint
This commit is contained in:
parent
848c239bff
commit
3347c8b9df
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React, { Component, createRef } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import { EuiFormRow, EuiDualRange } from '@elastic/eui';
|
||||
import { EuiFormRowDisplayKeys } from '@elastic/eui/src/components/form/form_row/form_row';
|
||||
import { EuiDualRangeProps } from '@elastic/eui/src/components/form/range/dual_range';
|
||||
|
@ -72,18 +72,6 @@ export class ValidatedDualRange extends Component<Props> {
|
|||
return null;
|
||||
}
|
||||
|
||||
// Can remove after eui#3412 is resolved
|
||||
componentDidMount() {
|
||||
if (this.trackRef.current) {
|
||||
const track = this.trackRef.current.querySelector('.euiRangeTrack');
|
||||
if (track) {
|
||||
track.setAttribute('aria-hidden', 'true');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
trackRef = createRef<HTMLDivElement>();
|
||||
|
||||
// @ts-ignore state populated by getDerivedStateFromProps
|
||||
state: State = {};
|
||||
|
||||
|
@ -119,7 +107,6 @@ export class ValidatedDualRange extends Component<Props> {
|
|||
} = this.props;
|
||||
|
||||
return (
|
||||
<div ref={this.trackRef}>
|
||||
<EuiFormRow
|
||||
compressed={compressed}
|
||||
fullWidth={fullWidth}
|
||||
|
@ -146,7 +133,6 @@ export class ValidatedDualRange extends Component<Props> {
|
|||
{...rest}
|
||||
/>
|
||||
</EuiFormRow>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue