Copy link to clipboard
Copied
[I'm not sure if I should post this here or in the Extensions / Add-ons Development forum. Bruce Bullis​​: any direction here?]
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:
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
This issue reproduces 100% of the time in v12.0.0. This does not occur in v11.1.2.
There is no fix currently scheduled, though the issue is still in consideration to be addressed during our next major release.
Copy link to clipboard
Copied
I should note that this causes severe headaches when attempting to validate user input for a given <input> field.
Copy link to clipboard
Copied
Also, perhaps related to this: deleting a selection of text in an <input> field will delete the selected text plus one additional character, if it exists.
Seems text <input> tags are pretty broken in v12.0.0...
Copy link to clipboard
Copied
Hi Eric,
While these forums are a good place to discuss bugs to trade notes and look for workarounds, generally it's not the place to report bugs. I'll check to see where your bug report should be directed.
Zac
Copy link to clipboard
Copied
Just closing the loop. Eric's bug is in the system as CEP-1058.
CEP issues can be raised here, especially while Bruce is out:
Copy link to clipboard
Copied
Thanks for pointing out the location to file new issues/bugs, https://forums.adobe.com/people/Zac%20Lam. Two followup questions for you:
Thanks!
Copy link to clipboard
Copied
1. Yes
2. Yes, and I linked to this forum post
Copy link to clipboard
Copied
Premiere 12.1.1 still has the problem.
Is there a schedule here to fix this bug?
Copy link to clipboard
Copied
There is no fix currently scheduled, though the issue is still in consideration to be addressed during our next major release.
Copy link to clipboard
Copied
I hope this is scheduled to be fixed soon. A recent "bug fix" in the open source BootstrapVue UI component library adjusted the code such that BootstrapVue's input elements now trigger this bug.
I have written of the negative consequences of the change in a comment on the merge commit. That said, it's definitely not a problem on their end...
Copy link to clipboard
Copied
Premiere 12.1.2 still has the problem.
Copy link to clipboard
Copied
jans55190482 wrote
Premiere 12.1.2 still has the problem.
Does Premiere 13 (based on CEP 9)? I don't have a good test for it at present to run myself...
Copy link to clipboard
Copied
Copy link to clipboard
Copied
This issue does not reproduce on Premiere Pro 13.1.4 (at least). Seems to be fixed.
Yay.