How to use the element-resize-event.unbind function in element-resize-event

To help you get started, we’ve selected a few element-resize-event examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AlpacaTravel / react-map-gl-alt / src / map.jsx View on Github external
componentWillUnmount() {
    // Remove in event listeners for the container
    // Pending; https://github.com/KyleAMathews/element-resize-event/issues/2
    if (removeResizeListener) {
      removeResizeListener(this.container, this._resizedContainer);
    }

    // Remove the map instance through the API
    if (this._map) {
      this._map.remove();
      this._map = null;
    }
  }
github rsuite / rsuite / src / Modal / Modal.tsx View on Github external
destroyEvent() {
    if (this.windowResizeListener) {
      this.windowResizeListener.off();
    }
    if (this.contentElement) {
      unbindElementResize(this.contentElement);
    }
  }
github rsuite / rsuite / src / Picker / MenuWrapper.tsx View on Github external
componentWillUnmount() {
    if (this.menuElementRef.current) {
      unbindElementResize(this.menuElementRef.current);
    }
  }
  updateMenuStyle() {
github rsuite / rsuite / src / Affix / Affix.tsx View on Github external
componentWillUnmount() {
    if (this.scrollListener) {
      this.scrollListener.off();
    }
    if (this.containerRef.current) {
      unbindElementResize(this.containerRef.current);
    }
  }
github rsuite / rsuite-table / src / Table.js View on Github external
componentWillUnmount() {
    this.wheelHandler = null;
    if (this.table) {
      unbindElementResize(this.table);
    }
    if (this.wheelListener) {
      this.wheelListener.off();
    }

    if (this.touchStartListener) {
      this.touchStartListener.off();
    }

    if (this.touchMoveListener) {
      this.touchMoveListener.off();
    }

    if (this.scrollListener) {
      this.scrollListener.off();
    }
github apple / turicreate / src / visualization / Turi Create Visualization / src / user_interface / src / elements / Explore / Table / sticky-table / index.js View on Github external
componentWillUnmount() {
    if (this.table) {
      this.xWrapper.removeEventListener('scroll', this.onScrollX);
      this.xWrapper.removeEventListener('scroll', this.scrollXScrollbar);
      this.xScrollbar.removeEventListener('scroll', this.onScrollBarX);

      this.yWrapper.removeEventListener('scroll', this.scrollYScrollbar);
      this.yScrollbar.removeEventListener('scroll', this.onScrollBarY);

      elementResizeEvent.unbind(this.realTable);
    }
  }

element-resize-event

Polyfill to make it easy to listen for element resize events

MIT
Latest version published 3 years ago

Package Health Score

57 / 100
Full package analysis