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

Chore: move kedown handler in rich history card
pull/58970/head
Giordano Ricci 3 years ago committed by GitHub
parent 44e8fb628e
commit b68fe6336a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      public/app/features/explore/RichHistory/RichHistoryCard.tsx

@ -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" />

Loading…
Cancel
Save