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.



git-svn-id: https://develop.svn.wordpress.org/trunk@40874 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Adam Silverstein 2017-06-05 00:48:19 +00:00
parent cc01df2bc8
commit 99369b9f7b
2 changed files with 2 additions and 2 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',

View File

@ -26,7 +26,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',