disable dropdown when recording

This commit is contained in:
Jose B
2023-07-21 07:44:16 -05:00
parent 23d563b97a
commit 3fe6c5ba33

View File

@@ -43,6 +43,7 @@ const AudioInputsDropdown = (props) => {
options={ddOptions} options={ddOptions}
onChange={handleDropdownChange} onChange={handleDropdownChange}
value={ddOptions[0]} value={ddOptions[0]}
disabled={props.disabled}
/> />
) )
} }
@@ -115,7 +116,7 @@ export default function Recorder(props) {
return ( return (
<div className="flex flex-col items-center justify-center max-w-[75vw] w-full"> <div className="flex flex-col items-center justify-center max-w-[75vw] w-full">
<div className="flex my-2 mx-auto"> <div className="flex my-2 mx-auto">
<AudioInputsDropdown setDeviceId={setDeviceId} /> <AudioInputsDropdown setDeviceId={setDeviceId} disabled={isRecording} />
&nbsp; &nbsp;
<button <button
onClick={handleRecClick} onClick={handleRecClick}