AngularJS and double click in IE vs. Firefox and Chrome

142 views
Skip to first unread message

Dirk W

unread,
Mar 27, 2017, 3:10:52 PM3/27/17
to Angular and AngularJS discussion
I do have a script, which lists some parent- and child-elements and which should start a method, if one of the child-elements is double clicked.

This works on Chrome and Firefox, but doesn't work in IE or Edge:

    <select>
        <optgroup ng-repeat="(strParent, parents) in parentData.parentlistList | groupBy:'strParent'" label="{{strParent}}">
            <option value="{{child}}" ng-repeat="child in parents" ng-dblclick="moveChild(child)">
               {{child.name}}
            </option>
        </optgroup>
    </select>


I tried to change the trigger - but doesn't matter if "ng-dblclick", "ng-click" or something else. It seems that Angular never gets notified about the event.

Other events (including dblClick) on the same page are working as the should, even with IE.


Any ideas?

Thanks

Dirk

Sander Elias

unread,
Mar 27, 2017, 8:59:52 PM3/27/17
to Angular and AngularJS discussion
Hi Dirk,

Hmm, sounds like an issue with the browser itself not supporting dbl-click on option elements. If that's true, there is no much can do.
Yep, a quick google search did confirm, have a look at this issue. I'm afraid it's up to MS now.

Regards
Sander

Dirk W

unread,
Mar 28, 2017, 4:54:42 AM3/28/17
to Angular and AngularJS discussion
Hi Sander,

thanks for that info.
Since some posts in stackoverflow are more than 5 years old, I don't think, there will be any changes done by MS in the future...

So I have to find another way...

Ciao

dirk
Reply all
Reply to author
Forward
0 new messages