fkscott / workflowy-calendar-generator

Generate a calendar structure with Workflowy dates. Options include a node for the year, the month, and the option to select what range of dates you want to generate.
https://workflowy-calendar-generator.vercel.app
0 stars 0 forks source link

No copyied text #8

Closed dannebrob closed 6 days ago

dannebrob commented 1 week ago

When creating a new calendar in Chrome, nothing is copied, just blank. This occurs when I choose a header (any combination) and also without.

fkscott commented 6 days ago

Open your browser console, when you click the button do you see any logging statements that say “copied to clipboard”?On Oct 24, 2024, at 2:33 AM, Daniel Brobäck @.***> wrote: When creating a new calendar in Chrome, nothing is copied, just blank. This occurs when I choose a header (any combination) and also without.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

dannebrob commented 6 days ago

Yes, that is correct. The console returns ”copied to clipboard” every time I click the button. But the clipboard object is blank.

Den 24 okt. 2024 kl 14:44, Keagan Scott @.***(mailto:Den 24 okt. 2024 kl 14:44, Keagan Scott < skrev:

Open your browser console, when you click the button do you see any logging statements that say “copied to clipboard”?On Oct 24, 2024, at 2:33 AM, Daniel Brobäck @.***> wrote: When creating a new calendar in Chrome, nothing is copied, just blank. This occurs when I choose a header (any combination) and also without.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

fkscott commented 6 days ago

That is strange. Maybe it is something to do with extensions? What version of Chrome?

I've been able to copy text on iOS 18 Safari, and Windows Chrome 130.0.6723.59. Also have tested on macOS with Firefox and Chrome as well.

dannebrob commented 6 days ago

I’m sorry, this is a user error. I did not click ‘Generate’, therefore there was nothing to copy. Totally my fault.

fkscott commented 6 days ago

No worries. I can push a change to make the buttons a little more visible.

dannebrob commented 6 days ago

I have not looked at your code, but you could make a function that looks at the variable that holds the value of the generated calendar and make the copy button disabled if it’s false (holds no value). I really like your project otherwise. It’s really cool!