Fix issue with extend of object in keyboard service

This commit is contained in:
Bjarne Fyrstenborg
2021-05-28 09:08:06 +02:00
committed by Nathan Woulfe
parent 7cccbb3fbf
commit 2697431de6

View File

@@ -264,7 +264,7 @@ function keyboardService($window, $timeout) {
var elt;
// Initialize opt object
opt = Utilities.extend(defaultOpt, opt);
opt = Utilities.extend({}, defaultOpt, opt);
label = label.toLowerCase();
elt = opt.target;
if(typeof opt.target === 'string'){