archimatetool / archimatetool/archi-scripting-plugin
window.prompt duplicate entry on paste
- Dominant language
- Java
- Stars
- 171
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Description
### jArchi Version
1.12
### Archi Version
5.10.0
### Operating System
Linux Mint 22
### Description
On pasting text in window.prompt window, text is duplicated (ex: pasting "test" > renders "testtest" in the prompt)
### Steps to reproduce
1. execute the following script
```
let answer = window.prompt("Please enter your name", "Default Name");
console.log(answer)
```
2. in a text editor, write "test", copy it
3. paste it in the prompt
4. "testtest" is displayed in the prompt
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by running the provided window.prompt script in jArchi 1.12 on Archi 5.10.0 and reproduce the paste behavior described in the issue. Trace the window.prompt entry point and its paste handling; done means pasting "test" displays one "test" and the script returns the expected value.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100