We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384dd7b commit 1a45263Copy full SHA for 1a45263
src/date-picker.js
@@ -476,10 +476,18 @@ export default {
476
);
477
const calendarIcon = this.type === 'time' ? <IconTime /> : <IconCalendar />;
478
return (
479
- <div class={`${prefixClass}-input-wrapper`} onMousedown={this.openPopup}>
+ <div
480
+ class={`${prefixClass}-input-wrapper`}
481
+ onMousedown={this.openPopup}
482
+ onTouchstart={this.openPopup}
483
+ >
484
{input}
485
{this.showClearIcon ? (
- <i class={`${prefixClass}-icon-clear`} onMousedown={this.handleClear}>
486
+ <i
487
+ class={`${prefixClass}-icon-clear`}
488
+ onMousedown={this.handleClear}
489
+ onTouchstart={this.handleClear}
490
491
{this.renderSlot('icon-clear', <IconClose />)}
492
</i>
493
) : null}
0 commit comments