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

editor automatically gains focus when intializing model with data #1851

Closed
tavatir opened this issue Mar 6, 2021 · 2 comments
Closed

editor automatically gains focus when intializing model with data #1851

tavatir opened this issue Mar 6, 2021 · 2 comments
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@tavatir
Copy link

tavatir commented Mar 6, 2021

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

I'm submitting a ... (check one with "x")

[ x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.

https://codesandbox.io/s/qjx332qq4

Current behavior
This is the same bug as this primefaces bug: primefaces/primeng#9664
Editor steals focus.

Expected behavior
Editor should not steal focus.

Minimal reproduction of the problem with instructions

Please tell us about your environment:

  • React version:
  • PrimeReact version:
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
  • Language: [all | TypeScript X.X | ES6/7 | ES5]
@tavatir
Copy link
Author

tavatir commented Mar 6, 2021

Replacing 2 this.quill.pasteHTML(this.props.value); with this.quill.setContents(this.quill.clipboard.convert(this.props.value)); in Editor.js fixes this issue.

@mcandu mcandu self-assigned this Apr 14, 2021
@mcandu mcandu added this to the 6.2.2 milestone Apr 14, 2021
@mcandu mcandu added the Type: Bug Issue contains a defect related to a specific component. label Apr 14, 2021
@mcandu mcandu closed this as completed in d1d90e6 Apr 14, 2021
mcandu added a commit that referenced this issue Apr 14, 2021
@mcandu
Copy link
Contributor

mcandu commented Apr 14, 2021

Thank you for your solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

No branches or pull requests

2 participants