angular-drag-and-drop-lists icon indicating copy to clipboard operation
angular-drag-and-drop-lists copied to clipboard

Firefox issues in selecting the input content using cursor

Open fadrian9006 opened this issue 8 years ago • 8 comments

I experienced this on Firefox on MAC OS El Capitan. This can be reproduced if you are using this url http://marceljuenemann.github.io/angular-drag-and-drop-lists/demo/#/types . Try to double click in order to select all the content for a specific input and you will see that is not working as you expected. Also, the pointer position is at the begining of content not at the end of it as we expected.

fadrian9006 avatar Apr 13 '16 08:04 fadrian9006

bump, also having this issue

ericyliu avatar May 25 '16 16:05 ericyliu

+1 still present in Firefox v47, also same in IE11, only Chrome is doing fine. Found no solution yet.

gsteiner89 avatar Jun 13 '16 09:06 gsteiner89

+1

daniouyea avatar Jun 30 '16 14:06 daniouyea

+1 same here Firefox v48 on Windows 8.1. I am also using the dnd-nodrag and dnd-handle to give the drag handle to a single element outside of the text inputs parent element. Also using the mouse to drag select the text does not work either .

Exlord avatar Sep 13 '16 10:09 Exlord

+1 this is a showstopper for me. Same issue in Edge/Firefox. Anyone got a workaround?

sal777 avatar Nov 17 '16 14:11 sal777

Here is a dirty workaround :

  module.directive('dndNodragInput', function() {
    return function(scope, element, attr) {
      element.on('focus', function(){
        element.attr("draggable", "false");
        element.parents('[draggable="true"]').attr('draggable', 'false');
      });

      element.on('blur', function(){
        element.attr("draggable", "true");
        element.parents('[draggable="false"]').attr('draggable', 'true');
      });
    };
  });

Apply the dnd-nodrag-input on your <input> and it works on FF (latest on Ubuntu). Not tested on Edge/IE11.

The bug come from draggable attribute : if an input have a parent with draggable="true" mouse events seems not working on child input...

yabab-dev avatar Nov 20 '16 16:11 yabab-dev

Other solution here : https://github.com/marceljuenemann/angular-drag-and-drop-lists/issues/127#issuecomment-236542050 ?

yabab-dev avatar Nov 20 '16 16:11 yabab-dev

I posted something that may help with this issue here

Goddak avatar Oct 11 '17 13:10 Goddak