Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Eichhorn committed Aug 28, 2023
1 parent 07a2ab5 commit b44c351
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Model/Action/Dom/SetValue.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { UriFactory } from '../../../Uri/UriFactory.js';

/**
* Set value of input.
*
Expand All @@ -18,7 +20,7 @@ export function domSetValue (action, callback, id)
let start = 0;
let end = 0;

while ((start = dataPath.indexOf('{', start)) !== -1) {
while (dataPath.indexOf('http') !== 0 && (start = dataPath.indexOf('{', start)) !== -1) {
end = dataPath.indexOf('}', start);
start++;

Expand Down Expand Up @@ -52,6 +54,8 @@ export function domSetValue (action, callback, id)
fill[i].innerHTML += dataPath;
}
}
} else if (fill[i].tagName.toLowerCase() === 'iframe') {
fill[i].src = UriFactory.build(dataPath);
} else {
if (fill[i].value !== dataPath
&& !fill[i].value.includes(', ' + dataPath + ',')
Expand Down
2 changes: 1 addition & 1 deletion UI/ActionManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ActionManager
}

self.runAction(this.id, listener, listener.action[0], event);
});
}, false);
};

/**
Expand Down

0 comments on commit b44c351

Please sign in to comment.