This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Uncaught TypeError: Cannot read property 'clipboardData' of undefined when pasting #848
Comments
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! |
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. |
+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
+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)
hey guys, do you have any progress on this? |
I created a pull request #1391 to fix this yesterday. |
ah, thanks |
There are many pull requests for this such as #1276 , But the project isn't maintained anymore so nobody merges them. |
Is there a way to keep this going? |
I opened #1398 |
aaronroberson
added a commit
that referenced
this issue
Feb 18, 2016
Please confirm fix in v0.14.7 and close this issue. |
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.
When pasting anything - all modes - the console throws the presented error.
The text was updated successfully, but these errors were encountered: