Skip to content

updatePosition only fires when i scroll the window #72

@even0318

Description

@even0318

i am using the version 1.3.0 and run into a problem.
when i select some words, 'onTextSelect' wont fire and the position of the popover is not recalculate(it show in the wrong place)
and then i scroll the window, onTextSelect and placementStrategy fired and all the things go in the right place
could you give some suggestion on solving the problem 😭
<SelectionPopover isOpen={this.state.isShowPopover} onTextSelect={() => {debugger}} onTextUnselect={() => this.setState({ isShowPopover: false })} className="selection-360-popover" selectionRef={this.ref} ref={this.popoverRef} scrollRef={this.props.scrollRef} containerNode={this.props.scrollRef.current} placementStrategy={placementStrategy} > <div className="mix-char-popover"> <Button color="primary" type="text" onClick={this.curOnMixTextCb} icon={ <Icon type="bee-icon_invisible_outlined" className="hide-icon" /> } > {t('hide_follow_perform_msg')} </Button> </div> </SelectionPopover>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions