Commit 7ee9d8b
fix: auto-fill ports for default selected template on page load
Problem:
- When create studio page loads, first template is selected by default
- But port mappings are not auto-filled for this default template
- User has to manually change template to trigger port auto-fill
- vscode-single-select component needs time to initialize
Solution:
- Add setTimeout (100ms) to wait for component initialization
- Retry after 200ms if component value not ready on first check
- Ensures initial template change event fires after DOM is ready
- Auto-fills default ports and expands Advanced Options on page load
Now users immediately see the default template's port configuration
without needing to manually change the template selection.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 7b78a32 commit 7ee9d8b
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
479 | 479 | | |
480 | 480 | | |
481 | 481 | | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
487 | 499 | | |
488 | 500 | | |
489 | 501 | | |
| |||
0 commit comments