Skip to content

Commit 6d08a87

Browse files
committed
revert back to textformfield
1 parent 0d8d079 commit 6d08a87

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

cypress/pageobject/Patient/PatientLogupdate.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class PatientLogupdate {
6363
}
6464

6565
typeSpo2(spo: string) {
66-
cy.typeAndSelectOption("#ventilator_spo2", spo);
66+
cy.get("#ventilator_spo2").click().type(spo);
6767
}
6868

6969
selectRhythm(rhythm: string) {

src/components/Patient/DailyRounds.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ import request from "@/Utils/request/request";
5959
import { formatDateTime } from "@/Utils/utils";
6060
import { scrollTo } from "@/Utils/utils";
6161

62-
import RangeAutocompleteFormField from "../Form/FormFields/RangeAutocompleteFormField";
6362
import TextFormField from "../Form/FormFields/TextFormField";
6463

6564
export const DailyRounds = (props: any) => {
@@ -704,12 +703,12 @@ export const DailyRounds = (props: any) => {
704703
]}
705704
/>
706705

707-
<RangeAutocompleteFormField
706+
<TextFormField
708707
{...field("ventilator_spo2")}
709-
unit="%"
710-
start={0}
711-
end={100}
712-
step={1}
708+
labelSuffix="%"
709+
type="number"
710+
min={0}
711+
max={100}
713712
thresholds={[
714713
{
715714
value: 0,

0 commit comments

Comments
 (0)