Skip to content

Commit 76c63fa

Browse files
committed
chore: publish 1.3.1
1 parent 6d4b350 commit 76c63fa

File tree

8 files changed

+14179
-7
lines changed

8 files changed

+14179
-7
lines changed

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
],
66
"npmClient": "yarn",
77
"useWorkspaces": true,
8-
"version": "1.3.0"
8+
"version": "1.3.1"
99
}

packages/server-test-utils/dist/vue-server-test-utils.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -8084,7 +8084,15 @@ ErrorWrapper.prototype.destroy = function destroy () {
80848084
*/
80858085

80868086
function isStyleVisible(element) {
8087-
var ref = element.style;
8087+
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
8088+
return false
8089+
}
8090+
8091+
// Per https://lists.w3.org/Archives/Public/www-style/2018May/0031.html
8092+
// getComputedStyle should only work with connected elements.
8093+
var ref = element.isConnected
8094+
? getComputedStyle(element)
8095+
: element.style;
80888096
var display = ref.display;
80898097
var visibility = ref.visibility;
80908098
var opacity = ref.opacity;

packages/server-test-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue/server-test-utils",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Utilities for testing Vue components.",
55
"main": "dist/vue-server-test-utils.js",
66
"types": "types/index.d.ts",

0 commit comments

Comments
 (0)