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

disable drop under CSP #1958

Merged

Conversation

graingert
Copy link
Contributor

No description provided.

@@ -31,6 +31,10 @@ uis.directive('uiSelectSort', ['$timeout', 'uiSelectConfig', 'uiSelectMinErr', f
}
});

if (element.data('disallowDrop')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rather than overriding the drop handlers in the html, simply don't set them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed? as I don't see anything in the code that is looking for ondrop?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's because the browser does it

Copy link
Contributor

Choose a reason for hiding this comment

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

you are right. then we are good to go here 👍

@Jefiozie Jefiozie merged commit d62cac2 into angular-ui:master Jun 7, 2017
@graingert graingert deleted the disable-drop-in-csp-environments branch June 7, 2017 14:30
@graingert
Copy link
Contributor Author

@Jefiozie any idea when this might get released?

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

Successfully merging this pull request may close these issues.

2 participants