Skip to content

what to do when no clippy content #15

@ananelson

Description

@ananelson

I just accidentally created a clippy with no content, and I was confused when I tested this and the pasted output was the same as the previous clippy on the page. I assumed I had entered the same text in two places at first. Apparently, because there was no content, nothing was copied to the clipboard so the previous contents of the clipboard were still there. However I still got the "copied!" message when I clicked.

It might be nice to have some better feedback here, maybe (a) a really obvious error when you create a blank clippy like a red X to tell the dev that something is wrong (b) a message like "Oops, nothing to copy!" after clicking or (c) copy blank content to the clipboard so previous contents are overwritten

On my end I'm just adding better verification to my helper function, so that will fix this for me :-)

Btw I'm using clippy here: http://www.dexy.it/docs/tutorials/0-hello-world/ if you're curious (scroll down a bit). It's very helpful! I've built it in to one of my filters so the source code goes directly in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions