mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Update latex preview during parameter autocomplete
This commit is contained in:
parent
5adeddfb0d
commit
05e2530924
1 changed files with 4 additions and 0 deletions
|
@ -19,9 +19,13 @@ export default class extends Controller
|
|||
|
||||
if (this.symbolTarget && symbol !== undefined) {
|
||||
this.symbolTarget.value = symbol;
|
||||
//Trigger input event to update the preview
|
||||
this.symbolTarget.dispatchEvent(new Event('input'));
|
||||
}
|
||||
if (this.unitTarget && unit !== undefined) {
|
||||
this.unitTarget.value = unit;
|
||||
//Trigger input event to update the preview
|
||||
this.unitTarget.dispatchEvent(new Event('input'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue