mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-02 11:04:43 +00:00
Update parser.js
Get rid of error stopping the parser for elements that doesn't have a parent with visible defined.
This commit is contained in:
parent
190973f6c9
commit
54f5cf11e5
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@
|
|||
else if (attr === 'visible') {
|
||||
value = (value === 'none' || value === 'hidden') ? false : true;
|
||||
// display=none on parent element always takes precedence over child element
|
||||
if (parentAttributes.visible === false) {
|
||||
if (typeof(parentAttributes.visible) != 'undefined' && parentAttributes.visible === false) {
|
||||
value = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue