fix terminal not working

Fixes: https://github.com/pybricks/support/issues/1130
This commit is contained in:
David Lechner
2023-07-01 11:09:08 -05:00
parent 0d73a37fce
commit 3ce7003f10
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -4,6 +4,11 @@
## [Unreleased]
### Fixed
- Fixed terminal not working (regression in 2.2.0-beta.6, [support#1130]).
[support#1130]: https://github.com/pybricks/support/issues/1130
## [2.2.0-beta.6] - 2023-06-30
### Changed
+2 -2
View File
@@ -243,8 +243,8 @@ const Terminal: React.FunctionComponent = () => {
<source src={BELL_SOUND} />
</audio>
<div className="pb-terminal-bell-overlay" ref={bellOverlayRef} />
<ResizeSensor onResize={(): void => fitAddon.fit()}>
<div ref={terminalRef} className="h-100" />
<ResizeSensor targetRef={terminalRef} onResize={(): void => fitAddon.fit()}>
<div ref={terminalRef} className="h-100 pb-focus-managed" />
</ResizeSensor>
</ContextMenu>
);