Fixed: editing textFields on different windows can clobber each others contents

Was be caused by resignFirstResponder not checking that the input owner is self.

Fixes #1983
This commit is contained in:
daboe01 committed 2013-10-27 13:46:00 +01:00
1 parent 0ac74fe16e
commit d1406e1b8f
1 file changed
+1 -1
+1 -1
View File
@@ -692,7 +692,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
{
#if PLATFORM(DOM)
// We might have been the first responder without actually editing.
if (_isEditing)
if (_isEditing && CPTextFieldInputOwner === self)
{
var element = [self _inputElement],
newValue = element.value,