mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-19 11:01:08 +00:00
Merge pull request #1413 from asturur/parent.attribute
Stop error on parentAttributes.visible
This commit is contained in:
commit
6c2f928801
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 (parentAttributes && parentAttributes.visible === false) {
|
||||
value = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue