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

Maintain Browser history on 'Prettier' + Fix issue with button on appearing on 'Create pull Request' #24

Merged
merged 1 commit into from
Oct 13, 2019

Conversation

Wicked7000
Copy link
Contributor

This PR is to address the issue raised in:
#22

This was fixed by switching to document.execCommand to insert the text into the textarea, which allows the browser to continue to keep track of history -> We should probably use this as the standard way of modifying text rather than setting the value.

Along with a small bugfix to check for the existence of the 'js-discussion' element before trying to observe it. (This was causing the 'Prettier' button to not render on the Create pull request pages)

Let me know if you have any questions or concerns.

@lipis lipis merged commit e77dd4d into prettier:master Oct 13, 2019
@nickmccurdy
Copy link
Member

nickmccurdy commented Oct 13, 2019

For future reference if you add Fix #ISSUE_ID or Fixes #ISSUE_ID to the pull request description or a commit message, GitHub will automatically close the issue when the pull request is merged into master.

@Wicked7000
Copy link
Contributor Author

Ah will do so in future, Thanks! I'm relatively new to open source so apologies for not knowing these things

@lipis
Copy link
Member

lipis commented Oct 13, 2019

No worries @Wicked7000 :) We've all been there.. welcome.

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

Successfully merging this pull request may close these issues.

None yet

3 participants