You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Readonly is set on the input field with txtBookingFormChangeDoctorDate, as you can see. Now, in bootstrap-datepicker.js, on line number 417 - 418, we have:
if (this.element.attr('readonly') && this.o.enableOnReadonly === false)
return;
Which means, this.element is the parent div, under which, the readonly input resides. So, essentially, this.element.attr('readonly') will always return undefined, because the parent div does not have any readonly attribute set ( and that's not expected either).
Could anyone look at it? Fix would be simple, but I just want to make sure that the source is also updated.
The text was updated successfully, but these errors were encountered:
My setup (stripped down for easy viewing):
HTML Output:
Readonly is set on the input field with txtBookingFormChangeDoctorDate, as you can see. Now, in bootstrap-datepicker.js, on line number 417 - 418, we have:
If I do
console.log(this.element)
, I get :Which means,
this.element
is the parent div, under which, the readonly input resides. So, essentially,this.element.attr('readonly')
will always return undefined, because the parent div does not have any readonly attribute set ( and that's not expected either).Could anyone look at it? Fix would be simple, but I just want to make sure that the source is also updated.
The text was updated successfully, but these errors were encountered: