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

Fixed the Share button Link copy issue #69

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

Nabeelcodes110
Copy link
Contributor

@Nabeelcodes110 Nabeelcodes110 commented Jul 27, 2023

Pull Request Template

Description

Share button of sheet was not working. After clicking the share button the link was not getting copied to the clipboard.

Fixes # (issue)
"navigator.clipboard.writeText(window.location.href)" returns the promise which was not handled before, I fixed that by adding then and catch block and moved the setCopyText inside it.

Type of change

Please delete options that are not relevant.

Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • [✓] I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • [✓] My changes generate no new warnings
  • [✓] I have checked my code and corrected any misspellings

@vallezw
Copy link
Member

vallezw commented Jul 27, 2023

Alright perfect thanks 🙏

@vallezw vallezw self-requested a review July 27, 2023 08:01
@vallezw vallezw mentioned this pull request Jul 27, 2023
@vallezw vallezw merged commit ad1e6f0 into SheetAble:main Jul 27, 2023
1 check passed
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

2 participants