shrty icon indicating copy to clipboard operation
shrty copied to clipboard

I don't have copying working.

Open thefubon opened this issue 2 years ago • 3 comments

Can you please tell me what could be causing this error? https://github.com/thefubon/nuxt3-starter/blob/master/components/app/LinkItem.vue

In Console

{                                                                                                             
  data: RefImpl {
    __v_isShallow: false,
    dep: undefined,
    __v_isRef: true,
    _rawValue: null,
    _value: null
  }
}

I don't have copying working.

const handleCopy = () => {
  navigator.clipboard.writeText(`https://domain.com/${props.link.shortKey}`);

  alert("Copied to Clipboard");
};

UPDATE: It worked after resetting the cache in the browser

thefubon avatar Jan 29 '23 15:01 thefubon