Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions src/renderers/dom/client/inputValueTracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,15 @@ var inputValueTracking = {

var currentValue = '' + node[valueField];

// if someone has already defined a value bail and don't track value
// will cause over reporting of changes, but it's better then a hard failure
// (needed for certain tests that spyOn input values)
if (node.hasOwnProperty(valueField)) {
// if someone has already defined a value or Safari, then bail
// and don't track value will cause over reporting of changes,
// but it's better then a hard failure
// (needed for certain tests that spyOn input values and Safari)
if (
node.hasOwnProperty(valueField) ||
typeof descriptor.get !== 'function' ||
typeof descriptor.set !== 'function'
) {
return;
}

Expand Down