Fix deprecated use of 'jQuery.fn.mouseenter()' shorthand event

The mouseenter event shorthand is deprecated in jQuery 3.0
and above. This patch updates the code to use the on() method
instead to remove the deprecation warning. For more information
about the deprecation of jQuery.fn.mouseenter(). Please refer [1].

[1] https://api.jquery.com/mouseenter/

Change-Id: I8b746184e6ab260ba0b0292989bd4078767e509e
This commit is contained in:
manchandavishal 2023-04-12 18:48:49 +05:30
parent 7d44796eca
commit 6d34551c1c
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ horizon.flat_network_topology = {
this._portdata.port_margin = d.port_margin;
this._portdata.left = 0;
this._portdata.right = 0;
$(this).mouseenter(function(e){
$(this).on('mouseenter', function(e){
e.stopPropagation();
});
});