Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updatePosition only fires when i scroll the window #72

Open
even0318 opened this issue Jul 28, 2023 · 0 comments
Open

updatePosition only fires when i scroll the window #72

even0318 opened this issue Jul 28, 2023 · 0 comments

Comments

@even0318
Copy link

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant