diff --git a/CHANGELOG.md b/CHANGELOG.md index 339c23d..96f3e1d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changes +## 0.9.3 + +* Upgrade to react-common 0.9.6 +* Upgrade to scalajs-react 1.7.2 + ## 0.9.2 * Upgrade to react-common 0.9.4 diff --git a/build.sbt b/build.sbt index d7e4359..9b130ad 100644 --- a/build.sbt +++ b/build.sbt @@ -104,7 +104,7 @@ lazy val facade = ) lazy val commonSettings = Seq( - scalaVersion := "2.13.2", + scalaVersion := "2.13.3", organization := "io.github.cquiroz.react", sonatypeProfileName := "io.github.cquiroz", description := "scala.js facade for react-virtualized", diff --git a/facade/src/main/scala/react/virtualized/AutoSizer.scala b/facade/src/main/scala/react/virtualized/AutoSizer.scala index 23c260e..be2271b 100644 --- a/facade/src/main/scala/react/virtualized/AutoSizer.scala +++ b/facade/src/main/scala/react/virtualized/AutoSizer.scala @@ -70,7 +70,7 @@ object AutoSizer { p.disableHeight = disableHeight p.disableWidth = disableWidth p.nonce = nonce - p.onResize = (s: Size) => onResize(s).runNow + p.onResize = (s: Size) => onResize(s).runNow() p.children = (s: Size) => children(s).toRaw p.style = style.map(Style.toJsObject).getOrElse(new js.Object()) p diff --git a/facade/src/main/scala/react/virtualized/Table.scala b/facade/src/main/scala/react/virtualized/Table.scala index 4e8b808..6929cfe 100644 --- a/facade/src/main/scala/react/virtualized/Table.scala +++ b/facade/src/main/scala/react/virtualized/Table.scala @@ -299,7 +299,7 @@ object Table { Style.fromJsObject(r.style) ).toRaw p.id = id - p.noRowsRenderer = Some[RawNoRowsRenderer](() => noRowsRenderer.apply.rawNode).orUndefined + p.noRowsRenderer = Some[RawNoRowsRenderer](() => noRowsRenderer.apply().rawNode).orUndefined p.onHeaderClick = (x: RawHeaderClickParam) => onHeaderClick(x.columnData, x.dataKey).runNow() p.onRowClick = (x: RawIndexParameter) => onRowClick(x.index).runNow() p.onRowDoubleClick = (x: RawIndexParameter) => onRowDoubleClick(x.index).runNow() diff --git a/facade/src/main/scala/react/virtualized/package.scala b/facade/src/main/scala/react/virtualized/package.scala index b2460a2..f712e3a 100644 --- a/facade/src/main/scala/react/virtualized/package.scala +++ b/facade/src/main/scala/react/virtualized/package.scala @@ -13,8 +13,8 @@ import react.common.EnumValue package object virtualized { implicit class TableJsMethodsOps(val m: virtualized.Table.JsMethods) extends AnyVal { - def forceUpdateGridCB: Callback = Callback(m.forceUpdateGrid) - def measureAllRowsCB: Callback = Callback(m.measureAllRows) + def forceUpdateGridCB: Callback = Callback(m.forceUpdateGrid()) + def measureAllRowsCB: Callback = Callback(m.measureAllRows()) def recomputeRowHeightsCB(index: Int): Callback = Callback(m.recomputeRowHeights(index)) def recomputeRowsHeightsCB(indexes: Int*): Callback =