componentDidMount()

in src/plugin/plugin-simple-bind-popup/index.tsx [56:68]


  componentDidMount() {
    event.on('common:variableBindDialog.openDialog', ({ field, node, maxTextSize }) => {
      const finalMaxTextSize = maxTextSize && typeof maxTextSize === 'number' ? maxTextSize : this.props.config?.props?.maxTextSize;
      this.setState({
        field,
        node: node || this.nodeRef,
        maxTextSize: finalMaxTextSize,
      }, () => {
        this.initCode();
        this.openDialog();
      });
    });
  }