mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-06 01:25:33 +00:00
fix fullscreen mode
This commit is contained in:
parent
ae95732358
commit
155cb493e3
@ -50,9 +50,12 @@ export function TextAreaInput({
|
|||||||
setShowToolbar(true)
|
setShowToolbar(true)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
// Collides with fullscreen mode
|
||||||
const handleBlur = () => {
|
const handleBlur = () => {
|
||||||
setShowToolbar(false)
|
setShowToolbar(false)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
const options = useMemo(() => {
|
const options = useMemo(() => {
|
||||||
return {
|
return {
|
||||||
@ -147,7 +150,7 @@ export function TextAreaInput({
|
|||||||
placeholder={placeholder ?? ''}
|
placeholder={placeholder ?? ''}
|
||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
onFocus={handleFocus}
|
onFocus={handleFocus}
|
||||||
onBlur={handleBlur}
|
// onBlur={handleBlur}
|
||||||
options={options}
|
options={options}
|
||||||
className={`${inputStyle ?? ''} ${showToolbar ? '' : 'hide-toolbar'}`}
|
className={`${inputStyle ?? ''} ${showToolbar ? '' : 'hide-toolbar'}`}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user