scala - scalajs-react migration from 0.8.1 to 0.9.2 -
basically, i'm searching useful react-bootstrap wrapper. during reviewing different possibilities i've found this github project. i've forked them , start updating versions. after updating scalajs-react version 0.8.1 0.9.2 i've stuck in rut html.element vs dom.element.
affix object call getdomnode() on scope
val domnode = scope.getdomnode()
earlier domnode extend type topnode = html.element
in newest version domnode extend type topnode = dom.element
don't have values such 'classname', 'offsetheight' , 'style'. compilation failures
[error] /users/vl/dev/git/scalajs-react-bootstrap/core/src/main/scala/com/acework/js/components/bootstrap/affix.scala:94: value offsetheight not member of japgolly.scalajs.react.topnode [error] } else if (offsetbottom.isdefined && (position.top + domnode.offsetheight >= scrollheight - offsetbottom.get)) { [error] ^ [error] /users/vl/dev/git/scalajs-react-bootstrap/core/src/main/scala/com/acework/js/components/bootstrap/affix.scala:102: value style not member of japgolly.scalajs.react.topnode [error] domnode.style.top = "" [error] ^ [error] /users/vl/dev/git/scalajs-react-bootstrap/core/src/main/scala/com/acework/js/components/bootstrap/affix.scala:53: value classname not member of japgolly.scalajs.react.topnode [error] var classname = affixregexp.replaceallin(node.classname, "") [error] ^
how can manage in newest scalajs-react version? (as understand functionality moved separate project 'scalajs-dom')
useful import
import japgolly.scalajs.react.extra.defaultreusabilityoverlay.autolifthtml
Comments
Post a Comment