@applitools/dom-snapshot
Advanced tools
Comparing version 3.7.0 to 3.7.1
@@ -7,2 +7,6 @@ | ||
## 3.7.1 - 2020/7/16 | ||
- fix selected options in select element ([Trello](https://trello.com/c/PftuuFqx)) | ||
## 3.7.0 - 2020/7/9 | ||
@@ -9,0 +13,0 @@ |
{ | ||
"name": "@applitools/dom-snapshot", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE", |
@@ -173,3 +173,7 @@ /* eslint-disable no-use-before-define */ | ||
if (elementNode.tagName === 'OPTION' && elementNode.parentElement.value === elementNode.value) { | ||
if ( | ||
elementNode.tagName === 'OPTION' && | ||
elementNode.parentElement.selectedOptions && | ||
Array.from(elementNode.parentElement.selectedOptions).indexOf(elementNode) > -1 | ||
) { | ||
addOrUpdateAttribute(node.attributes, 'selected', ''); | ||
@@ -176,0 +180,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3869876
89721