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

[Bug] Popover children 传入 react 组件时,无法捕获 react 的 onClick 事件 #13

Open
1 task done
rick-yo opened this issue Nov 29, 2021 · 3 comments
Open
1 task done

Comments

@rick-yo
Copy link

rick-yo commented Nov 29, 2021

Code of conduct

  • I agree to follow this project's code of conduct.

Description of issue

No response

@rick-yo
Copy link
Author

rick-yo commented Nov 29, 2021

<span onClick={() => console.log(1)}>{TextDecorationStyle.bold}</span>
 <Textfield
  	className={styles.rangeSizeInput}
    value={style['min-height']}
    change={() => console.log(2)}
 />

1 similar comment
@rick-yo
Copy link
Author

rick-yo commented Nov 29, 2021

<span onClick={() => console.log(1)}>{TextDecorationStyle.bold}</span>
 <Textfield
  	className={styles.rangeSizeInput}
    value={style['min-height']}
    change={() => console.log(2)}
 />

@rick-yo
Copy link
Author

rick-yo commented Nov 29, 2021

如图 Textfield 的 change 事件可以触发,span onClick 无法触发。

see https://custom-elements-everywhere.com/#react

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