diff --git a/web/client/components/data/featuregrid/filterRenderers/AttributeFilter.jsx b/web/client/components/data/featuregrid/filterRenderers/AttributeFilter.jsx
index bee1a2617a..640191647d 100644
--- a/web/client/components/data/featuregrid/filterRenderers/AttributeFilter.jsx
+++ b/web/client/components/data/featuregrid/filterRenderers/AttributeFilter.jsx
@@ -145,8 +145,10 @@ class AttributeFilter extends React.PureComponent {
let inputKey = 'header-filter--' + this.props.column.key;
return (
- {this.props.isWithinAttrTbl ? this.renderOperatorField() : null}
- {this.renderTooltip(this.renderInput())}
+ {this.props.isWithinAttrTbl ? <>
+ {this.renderOperatorField()}
+ {['time', 'date', 'date-time'].includes(this.props.type) ? this.renderInput() : this.renderTooltip(this.renderInput())}
+ > : this.renderTooltip(this.renderInput())}
);
}
diff --git a/web/client/components/misc/datetimepicker/DateTimePicker.js b/web/client/components/misc/datetimepicker/DateTimePicker.js
index d3db4eae61..48dd514707 100644
--- a/web/client/components/misc/datetimepicker/DateTimePicker.js
+++ b/web/client/components/misc/datetimepicker/DateTimePicker.js
@@ -166,7 +166,7 @@ class DateTimePicker extends Component {
}
render() {
- const { open, inputValue, operator, focused } = this.state;
+ const { open, inputValue, operator, focused, openDateTime } = this.state;
const { calendar, time, toolTip, placeholder, tabIndex, type, popupPosition } = this.props;
const props = Object.keys(this.props).reduce((acc, key) => {
if (['placeholder', 'calendar', 'time', 'onChange', 'value'].includes(key)) {
@@ -179,6 +179,7 @@ class DateTimePicker extends Component {
}, {});
const calendarVisible = open === 'date';
const timeVisible = open === 'time';
+ const dateTimeVisible = openDateTime === 'dateTime';
let calendarVal = null;
if ( this.props.value && typeof this.props.value === 'object') {
calendarVal = this.props.value?.startDate;
@@ -189,9 +190,10 @@ class DateTimePicker extends Component {
if (type === 'date-time') {
return ( {this.dateTimeRef = elem;}} onBlur={() => this.handleWidgetBlur(type)} onKeyDown={this.handleKeyDown} onFocus={this.handleWidgetFocus} className={`rw-datetimepicker range-time-input rw-widget ${focused ? 'rw-state-focus' : ''}`}>
- {this.renderInput(inputValue, operator, toolTip, placeholder, tabIndex, true, true)}
+ {this.renderInput(inputValue, operator, dateTimeVisible ? '' : toolTip, placeholder, tabIndex, true, true)}
}
>
-
@@ -210,9 +212,10 @@ class DateTimePicker extends Component {
} else if (type === 'time') {
return (
- {this.renderInput(inputValue, operator, toolTip, timePlaceholderMsgId, tabIndex, calendarVisible, timeVisible)}
+ {this.renderInput(inputValue, operator, timeVisible ? '' : toolTip, timePlaceholderMsgId, tabIndex, calendarVisible, timeVisible)}
}
>
-
+
@@ -236,13 +239,14 @@ class DateTimePicker extends Component {
}
return (
- {this.renderInput(inputValue, operator, toolTip, placeholder, tabIndex, calendarVisible, timeVisible)}
+ {this.renderInput(inputValue, operator, calendarVisible ? '' : toolTip, placeholder, tabIndex, calendarVisible, timeVisible)}
{calendar ?
}
>
- {this.calendarRef = elem;}} tabIndex="-1" title="Select Date" type="button" aria-disabled="false" aria-label="Select Date" className="rw-btn-calendar rw-btn" onClick={this.toggleCalendar}>
+