Skip to content

Commit

Permalink
Merge pull request #359 from rebeccaalpert/onChange
Browse files Browse the repository at this point in the history
fix(MessageBar): Add onChange for when microphone completes
  • Loading branch information
nicolethoen authored Dec 9, 2024
2 parents 57da18a + 3ac9bc4 commit 1a42289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/module/src/MessageBar/MessageBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
left: 16px;
color: var(--pf-t--global--text--color--placeholder);
pointer-events: none;
font-size: var(--pf-t--chatbot--font-size);
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/module/src/MessageBar/MessageBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export const MessageBar: React.FunctionComponent<MessageBarProps> = ({
textarea.focus();
textarea.textContent = DOMPurify.sanitize(message);
}
onChange && onChange({} as React.ChangeEvent<HTMLDivElement>, message);
};

const renderButtons = () => {
Expand Down

0 comments on commit 1a42289

Please sign in to comment.