mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: move keydown handler in rich history card (#58945)
Chore: move kedown handler in rich history card
This commit is contained in:
parent
44e8fb628e
commit
b68fe6336a
@ -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…
Reference in New Issue
Block a user