mirror of
https://github.com/gchq/CyberChef
synced 2025-01-22 09:15:03 +00:00
Merge branch 'j433866-load-regex-fix'
This commit is contained in:
commit
a271eaabd0
1 changed files with 3 additions and 1 deletions
|
@ -293,7 +293,9 @@ class HTMLIngredient {
|
||||||
const op = el.parentNode.parentNode;
|
const op = el.parentNode.parentNode;
|
||||||
const target = op.querySelectorAll(".arg")[this.target];
|
const target = op.querySelectorAll(".arg")[this.target];
|
||||||
|
|
||||||
target.value = el.childNodes[el.selectedIndex].getAttribute("populate-value");
|
const popVal = el.childNodes[el.selectedIndex].getAttribute("populate-value");
|
||||||
|
if (popVal !== "") target.value = popVal;
|
||||||
|
|
||||||
const evt = new Event("change");
|
const evt = new Event("change");
|
||||||
target.dispatchEvent(evt);
|
target.dispatchEvent(evt);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue