Skip to content

Commit

Permalink
Update inst/htmlwidgets/datatables.js
Browse files Browse the repository at this point in the history
Co-authored-by: Yihui Xie <[email protected]>
  • Loading branch information
Mosk915 and yihui authored Nov 25, 2024
1 parent f907b6f commit b54927b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions inst/htmlwidgets/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,7 @@ HTMLWidgets.widget({
};
},
renderValue: function(el, data, instance) {
if(!data.hasOwnProperty("lazyRender"))
data.lazyRender = true;
if ((el.offsetWidth === 0 || el.offsetHeight === 0) && data.lazyRender) {
if ((el.offsetWidth === 0 || el.offsetHeight === 0) && data.lazyRender !== false) {
instance.data = data;
return;
}
Expand Down

0 comments on commit b54927b

Please sign in to comment.