Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Do not set the datepicker native input type more than once.
Browse files Browse the repository at this point in the history
When input type is unnecessarily set the native calendar doesn't popup on desktop.
  • Loading branch information
eduardolundgren committed Sep 9, 2013
1 parent 110324f commit c0c8ce0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aui-datepicker/js/aui-datepicker-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ DatePickerNativeBase.prototype = {
}
}

node.setAttribute(TYPE, nativeType);
if (node.getAttribute(TYPE) !== nativeType) {
node.setAttribute(TYPE, nativeType);
}

instance._fireSelectionChange();
},
Expand Down

0 comments on commit c0c8ce0

Please sign in to comment.