Media: Fix an issue selecting media when clicking item edges.

Adjust targeting of the click handler for media item selection so clicking edges of media items properly selects them.

Props circlecube, psiico.
Fixes #40578.


Built from https://develop.svn.wordpress.org/trunk@40874


git-svn-id: http://core.svn.wordpress.org/trunk@40724 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Adam Silverstein
2017-06-05 00:49:43 +00:00
parent 2607373832
commit c7f7e76515
3 changed files with 6 additions and 6 deletions

View File

@@ -2697,7 +2697,7 @@ Attachment = View.extend({
},
events: {
'click .js--select-attachment': 'toggleSelectionHandler',
'click': 'toggleSelectionHandler',
'change [data-setting]': 'updateSetting',
'change [data-setting] input': 'updateSetting',
'change [data-setting] select': 'updateSetting',