Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste output is not triggered when input is not empty (at least in Firefox) #54701

Closed
martin-yumsto opened this issue Mar 5, 2024 · 7 comments
Labels
area: core Issues related to the framework runtime needs reproduction This issue needs a reproduction in order for the team to investigate further
Milestone

Comments

@martin-yumsto
Copy link

Which @angular/* package(s) are the source of the bug?

common, core

Is this a regression?

Yes

Description

(paste) output on the input element is not triggered if there is already a content inside the element. It seems it works fine if you paste by right clicking and selecting paste from context menu. It doesn't work when using keyboard shortcuts - ctrl/cmd + v

A great folk named Frederik, prepared this small sandbox with pure js: https://jsfiddle.net/zuxwqakg/ and this one with minimal Angular to reproduce: https://stackblitz.com/edit/stackblitz-starters-sz8ifv

You can see pure js works perfectly fine, but Angular one works in Chrome, but not (at least) in the Firefox

Steps to reproduce:

  • copy something in clipboard
  • paste it inside an empty input -> it triggers paste function
  • paste it again in the same input -> it's appended but paste function is not triggered

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/stackblitz-starters-sz8ifv

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 17.2.0
Node: 20.10.0
Package Manager: pnpm 8.14.1
OS: darwin arm64

Angular: 17.2.1
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1702.0 (cli-only)
@angular-devkit/build-angular   17.2.0
@angular-devkit/core            17.2.0 (cli-only)
@angular-devkit/schematics      17.2.0 (cli-only)
@angular/cdk                    17.2.0
@angular/cli                    17.2.0
@angular/ssr                    17.2.0
@schematics/angular             17.2.0 (cli-only)
rxjs                            7.5.7
typescript                      5.3.3
zone.js                         0.14.3

Anything else?

Firefox details:
Name Firefox
Version 123.0
Build ID 20240213221259

@alxhub alxhub added the needs reproduction This issue needs a reproduction in order for the team to investigate further label Mar 5, 2024
@alxhub
Copy link
Member

alxhub commented Mar 5, 2024

I cannot reproduce this in Firefox 123.0.1 with the given StackBlitz. The paste log triggers every time. (note that the Firefox dev console deduplicates logging statements)

@alxhub alxhub added the area: core Issues related to the framework runtime label Mar 5, 2024
@ngbot ngbot bot added this to the Backlog milestone Mar 5, 2024
@martin-yumsto
Copy link
Author

@alxhub what platform did you try it on? I remember, there was another guy with Mac saying he was able to reproduce it. As well as different dev with linux saying it's not reproducible for them.

@alxhub
Copy link
Member

alxhub commented Mar 5, 2024

I'm on Mac, using the latest Firefox.

@pkozlowski-opensource
Copy link
Member

Also one should verify if a problematic browser is not running any extensions that could interfere.

@Totati
Copy link
Contributor

Totati commented Mar 6, 2024

I could not reproduce it on Windows 10, Firefox 123.0.1

@alxhub
Copy link
Member

alxhub commented Mar 22, 2024

Closing as a few of us have tried and we've been unable to reproduce the issue. Feel free to reopen the issue if a reproduction can be narrowed down.

@alxhub alxhub closed this as not planned Won't fix, can't repro, duplicate, stale Mar 22, 2024
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: core Issues related to the framework runtime needs reproduction This issue needs a reproduction in order for the team to investigate further
Projects
None yet
Development

No branches or pull requests

4 participants