Fixed an issue where Datetimepicker control opens when clicking on the label.

Change the click event to 'click .input-group'.

Fixes #4850
This commit is contained in:
Nagesh Dhope
2019-10-18 12:07:01 +05:30
committed by Akshay Joshi
parent 03391a07e0
commit 687fe617cc
3 changed files with 22 additions and 1 deletions

View File

@@ -2690,7 +2690,7 @@ define([
'focus input': 'clearInvalid',
'focusout input': 'closePicker',
'change.datetimepicker': 'onChange',
'click': 'togglePicker',
'click .input-group': 'togglePicker',
},
togglePicker: function() {
if (this.has_datepicker) {