Chore: move keydown handler in rich history card (#58945)

Chore: move kedown handler in rich history card
This commit is contained in:
Giordano Ricci 2022-11-18 14:54:20 +01:00 committed by GitHub
parent 44e8fb628e
commit b68fe6336a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,6 +260,7 @@ export function RichHistoryCard(props: Props) {
const updateComment = (
<div className={styles.updateCommentContainer} aria-label={comment ? 'Update comment form' : 'Add comment form'}>
<TextArea
onKeyDown={onKeyDown}
value={comment}
placeholder={comment ? undefined : 'An optional description of what the query does.'}
onChange={(e) => setComment(e.currentTarget.value)}
@ -298,7 +299,7 @@ export function RichHistoryCard(props: Props) {
);
return (
<div className={styles.queryCard} onKeyDown={onKeyDown}>
<div className={styles.queryCard}>
<div className={styles.cardRow}>
<div className={styles.datasourceContainer}>
<img src={dsImg} aria-label="Data source icon" />