diff --git a/web/components/feed-create.tsx b/web/components/feed-create.tsx
index a2d52135..7ed1a213 100644
--- a/web/components/feed-create.tsx
+++ b/web/components/feed-create.tsx
@@ -61,6 +61,7 @@ export default function FeedCreate(props: {
}) {
const { user, tag, className } = props
const [question, setQuestion] = useState('')
+ const [focused, setFocused] = useState(false)
const placeholders = [
'Will anyone I know get engaged this year?',
@@ -81,7 +82,11 @@ export default function FeedCreate(props: {
return (
!question && inputRef.current?.focus()}
>
@@ -99,17 +104,19 @@ export default function FeedCreate(props: {
value={question}
onClick={(e) => e.stopPropagation()}
onChange={(e) => setQuestion(e.target.value.replace('\n', ''))}
+ onFocus={() => setFocused(true)}
+ onBlur={() => setFocused(false)}
/>
{/* Hide component instead of deleting, so edits to NewContract don't get lost */}
-
+
{/* Show a fake "Create Market" button, which gets replaced with the NewContract one*/}
- {!question && (
+ {!(question || focused) && (