You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(FR-2874): defer BAICodeEditor reveal until Monaco CSS commits
The earlier `onMount` overlay still let Monaco's `.inputarea` flash through. Root cause: `editor.main.css` is loaded by Monaco's AMD `css!` plugin asynchronously, while `onMount` fires synchronously inside `monaco.editor.create()` — *before* the browser has committed the new stylesheet. Flipping the overlay off in `onMount` therefore still exposes one paint of the unstyled native textarea.
Wait two `requestAnimationFrame`s in `onMount` before flipping `isEditorReady`: the first lets the stylesheet commit, the second lets the browser paint the new styles. Then drop the overlay. Also switch the hidden state from `visibility: hidden` to `opacity: 0` + `pointer-events: none` (and the overlay to `z-index: 1`) so the unstyled textarea can't be tabbed into during the brief window.
0 commit comments