* @override * @private
()
| 196 | * @private |
| 197 | */ |
| 198 | _togglePicker() { |
| 199 | super._togglePicker(); |
| 200 | |
| 201 | if (this.open) { |
| 202 | let timeSelectionValue = this.value; |
| 203 | |
| 204 | // If current value is invalid, use the last valid value for time selection |
| 205 | if (!timeSelectionValue || !this.isValidValue(timeSelectionValue)) { |
| 206 | timeSelectionValue = this._lastValidValue || this.getValueFormat().format(UI5Date.getInstance()); |
| 207 | } |
| 208 | |
| 209 | this._previewValues = { |
| 210 | ...this._previewValues, |
| 211 | timeSelectionValue, |
| 212 | }; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | get formValidityMessage() { |
| 217 | const validity = this.formValidity; |
no test coverage detected