[Bug Report] <input> element triggers oninput callback more than it should (3x!)
[I'm not sure if I should post this here or in the Extensions / Add-ons Development forum. Bruce Bullis: any direction here?]
Description
In CEP panels in Premiere Pro v12.0.0, <input> elements will trigger their oninput callbacks three times for every character input. What's more, the values sent to the callback are all different. A panel consisting entirely of the following HTML:
<!DOCTYPE html>
<html>
<head>
<script>
function showInput(event)
{
console.log(event.target.value);
}
</script>
</head>
<body>
<input oninput="showInput(event)">
</body>
</html>
will show nothing but a single input field on an otherwise white canvas. Typing "abc" into that field results in the following output in the console:
.
a
a.
a
ab
ab.
ab
abc
Each character input to the field generates three calls to the showInput function, one each of the following form:
- [prev_value].
- [prev_value]
- [new_value]
A bit more testing shows that the dot (.) that appears indicates the location at which the change will occur. The dot will appear mid-value if a character is added/removed from the middle of the previously existing value. Adding a 'd' character between the 'a' and 'b' of 'abc', therefore, results in the following output:
a.bc
abc
adbc
Versions Tested
This issue reproduces 100% of the time in v12.0.0. This does not occur in v11.1.2.
