Skip to content

Commit b54927b

Browse files
Mosk915yihui
andauthored
Update inst/htmlwidgets/datatables.js
Co-authored-by: Yihui Xie <[email protected]>
1 parent f907b6f commit b54927b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

inst/htmlwidgets/datatables.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ HTMLWidgets.widget({
180180
};
181181
},
182182
renderValue: function(el, data, instance) {
183-
if(!data.hasOwnProperty("lazyRender"))
184-
data.lazyRender = true;
185-
if ((el.offsetWidth === 0 || el.offsetHeight === 0) && data.lazyRender) {
183+
if ((el.offsetWidth === 0 || el.offsetHeight === 0) && data.lazyRender !== false) {
186184
instance.data = data;
187185
return;
188186
}

0 commit comments

Comments
 (0)