File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/x-flow/src/components/PanelContainer Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
135135 />
136136 ) }
137137 </ span >
138- { isDisabled ? (
138+ { isDisabled || readOnly ? (
139139 < span style = { { marginLeft : '11px' } } > { titleVal } </ span >
140140 ) : (
141141 < Input
@@ -167,7 +167,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
167167 </ div >
168168 { ! hideDesc && (
169169 < div className = "desc-box" >
170- { isDisabled ? (
170+ { isDisabled ? (
171171 description
172172 ) : (
173173 < Input . TextArea
@@ -178,7 +178,7 @@ const Panel: FC<IPanelProps> = (props: IPanelProps) => {
178178 setDescVal ( e . target . value ) ;
179179 handleNodeValueChange ( { desc : e . target . value } ) ;
180180 } }
181- disabled = { readOnly }
181+ disabled = { readOnly }
182182 />
183183 ) }
184184 </ div >
You can’t perform that action at this time.
0 commit comments