Fixed: cursor of CPTextField is not updated to default

Previously, when changing the mode of the CPTextField from editable to non-editable, the cursor wasn't set to default. Now it does.
This commit is contained in:
Alexandre Wilhelm committed 2014-10-28 11:19:49 -07:00
1 parent 90345addce
commit b180f06c2a
1 file changed
+6
+6
View File
@@ -1146,6 +1146,12 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
{
#if PLATFORM(DOM)
self._DOMElement.style.cursor = "text";
#endif
}
else
{
#if PLATFORM(DOM)
self._DOMElement.style.cursor = "default";
#endif
}
}