Skip to content

Commit

Permalink
click bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurovrata V committed Oct 12, 2017
1 parent e290c9a commit 4e41bde
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions admin/js/cf7-grid-layout-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,12 @@
//grid click event delegation
$grid.on('click', function(event){
var $target = $(event.target);
if($target.is(':input:visible')){
return false;
switch(true){
case $target.is('input[type="text"]:visible'):
case $target.is('textarea:visible'): //click on a field.
case $target.is('select:visible'):
return true;
break;
}
//close any open row/column controls
closeAllControls();
Expand Down
1 change: 1 addition & 0 deletions public/css/cf7-grid-layout-public.css
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ input.select2-search__field{
border-radius: 3px;
font-size: 110%;
font-weight: bold;
color: white;
}
.cf7-smart-grid.has-grid .wpcf7-save {
background: transparent;
Expand Down

0 comments on commit 4e41bde

Please sign in to comment.