Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

feat(input): added drop event support #16420

Conversation

XFree
Copy link
Contributor

@XFree XFree commented Jan 26, 2018

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature

What is the current behavior? (You can also link to an open issue here)
drop event not support

What is the new behavior (if this is a feature change)?
added drop event support

Does this PR introduce a breaking change?
no

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Fix/Feature: Docs have been added/updated
  • Fix/Feature: Tests have been added; existing tests pass

Other information:

@@ -1308,7 +1308,7 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {

// if user modifies input value using context menu in IE, we need "paste" and "cut" events to catch it
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment needs updating now 😃

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank's.

@@ -1308,7 +1308,7 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {

// if user modifies input value using context menu in IE, we need "paste" and "cut" events to catch it
if ($sniffer.hasEvent('paste')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to check for drop event support separately? Are there browsers that support one but not the other?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't imagine that they would support drop but not paste. But perhaps the other way around?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From caniuse.com, it looks like support for event drop is equivalent to support for the paste event.

@XFree
Copy link
Contributor Author

XFree commented Jan 26, 2018

@petebacondarwin , @gkalpak: The assembly has fallen with the comment "I have a colon after the closing parenthesis :): but there are colon ones?

@petebacondarwin
Copy link
Member

@XFree - hmm, it seems that the commit message check is picking up a commit that is from before your PR: style(css) separate selectors and declarations by new lines.

Perhaps try rebasing on master, if you haven't recently?

@XFree XFree force-pushed the feature/1.6.X/input/added-drop-event-support branch from e6ce8f9 to ac5abfa Compare January 26, 2018 12:12
@XFree
Copy link
Contributor Author

XFree commented Jan 26, 2018

@petebacondarwin, done

@petebacondarwin petebacondarwin merged commit a8830d2 into angular:master Jan 28, 2018
@XFree XFree deleted the feature/1.6.X/input/added-drop-event-support branch January 28, 2018 20:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants