Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

Uncaught TypeError: Cannot read property 'clipboardData' of undefined when pasting #848

Closed
ruionwriting opened this issue Apr 14, 2015 · 12 comments

Comments

@ruionwriting
Copy link

When pasting anything - all modes - the console throws the presented error.

@bobs619
Copy link

bobs619 commented May 1, 2015

I ended up changing the spot where it errors to this:

var t = e.originalEvent.clipboardData ? e.originalEvent.clipboardData.getData("text/plain") : window.clipboardData.getData("text");

I tested it on IE 11 and Chrome. Works!

@rysilva
Copy link

rysilva commented Aug 11, 2015

The issue is that originalEvent is jquery. Since jquery is supposedly not required for ui-select, this reference should be removed completely for the fix.

@sdir456
Copy link

sdir456 commented Sep 15, 2015

+1

erikdubbelboer added a commit to atomx/ui-select that referenced this issue Oct 26, 2015
Add paste="expression" to allow custom paste handling.

Allow pasting in tagging mode when the tagging function is not defined.

In IE use window.clipboardData so jQuery is not required.

Fixes angular-ui#910, angular-ui#704, angular-ui#789, angular-ui#848, angular-ui#429
erikdubbelboer added a commit to atomx/ui-select that referenced this issue Oct 27, 2015
Add paste="expression" to allow custom paste handling.

Allow pasting in tagging mode when the tagging function is not defined.

In IE use window.clipboardData so jQuery is not required.

Fixes angular-ui#910, angular-ui#704, angular-ui#789, angular-ui#848, angular-ui#429
erikdubbelboer added a commit to atomx/ui-select that referenced this issue Nov 9, 2015
Add paste="expression" to allow custom paste handling.

Allow pasting in tagging mode when the tagging function is not defined.

In IE use window.clipboardData so jQuery is not required.

Fixes angular-ui#910, angular-ui#704, angular-ui#789, angular-ui#848, angular-ui#429
@shali3
Copy link

shali3 commented Dec 20, 2015

+1 Please fix

danielgrippi pushed a commit to viewthespace/ui-select that referenced this issue Jan 12, 2016
Add paste="expression" to allow custom paste handling.

Allow pasting in tagging mode when the tagging function is not defined.

In IE use window.clipboardData so jQuery is not required.

Fixes angular-ui#910, angular-ui#704, angular-ui#789, angular-ui#848, angular-ui#429

(cherry picked from commit 5b852b3)
@cfey
Copy link

cfey commented Jan 20, 2016

hey guys, do you have any progress on this?

@shali3
Copy link

shali3 commented Jan 20, 2016

I created a pull request #1391 to fix this yesterday.

@cfey
Copy link

cfey commented Jan 20, 2016

ah, thanks
+1

@erikdubbelboer
Copy link
Contributor

There are many pull requests for this such as #1276 , But the project isn't maintained anymore so nobody merges them.

@cfey
Copy link

cfey commented Jan 20, 2016

Is there a way to keep this going?
Would be sad if this project gets abandoned 😕

@shali3
Copy link

shali3 commented Jan 20, 2016

I opened #1398
You are welcome to comment there

aaronroberson added a commit that referenced this issue Feb 18, 2016
Add paste="expression" to allow custom paste handling.

Allow pasting in tagging mode when the tagging function is not defined.

In IE use window.clipboardData so jQuery is not required.

Fixes #910, #704, #789, #848, #429
@aaronroberson
Copy link
Contributor

Please confirm fix in v0.14.7 and close this issue.

@wesleycho
Copy link
Contributor

Closing this as fixed - feel free to open a new issue if it is still a problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants