Skip to content

Commit b357591

Browse files
authored
fix: disable object element handler (#122)
the `object` without `visibility: hidden` may trigger some bugs in `contenteditable`
1 parent 5ceb31d commit b357591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection-strategy/object.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ module.exports = function(options) {
6969
var debug = options.debug;
7070

7171
function injectObject(element, callback) {
72-
var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none"]);
72+
var OBJECT_STYLE = buildCssTextString(["display: block", "position: absolute", "top: 0", "left: 0", "width: 100%", "height: 100%", "border: none", "padding: 0", "margin: 0", "opacity: 0", "z-index: -1000", "pointer-events: none", "visibility: hidden"]);
7373

7474
//The target element needs to be positioned (everything except static) so the absolute positioned object will be positioned relative to the target element.
7575

0 commit comments

Comments
 (0)