Skip to content
Snippets Groups Projects
Commit 15eb2a05 authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Reverted changes. Not sure why the same method works on date-picker but not here.

parent 45648aae
No related branches found
No related tags found
1 merge request!378Reworked the USWDS date picker and restored original features for controlling the min/max dates in the date picker in the time span controls
......@@ -6,6 +6,7 @@
>
Sampling Methods/Sub-locations:
<span
class="usa-tooltip"
ref="tooltip"
data-position="right"
title="The names used in dropdown menu are often specific to a particular monitoring location and describe sampling details used to distinguish time-series of the same type--examples include variations in physical location and sensor type."
......@@ -70,18 +71,13 @@ export default {
return props.sortedIvMethods.methods.findIndex(method => method.pointCount === 0) > -1;
});
const initializeUSWDSTooltip = function() {
tooltip.value.setAttribute('class', 'usa-tooltip');
uswdsTooltip.on(tooltip.value);
};
onMounted(() => {
if (document.readyState === 'complete') {
initializeUSWDSTooltip();
uswdsTooltip.on(tooltip.value);
} else {
document.addEventListener('readystatechange', (event) => {
if (event.target.readyState === 'complete') {
initializeUSWDSTooltip();
uswdsTooltip.on(tooltip.value);
}
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment