fix(materials): mouseup event propagation in condition (#458)

* fix(materials): mouseup event propagation in condition

* fix(docs): form-materials
This commit is contained in:
Yiwei Mao 2025-07-03 20:56:10 +08:00 committed by GitHub
parent e5d73966b4
commit 4a857ba9a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 3 deletions

View File

@ -12,7 +12,7 @@ export function MaterialDisplay(props: any) {
<br />
<PackageManagerTabs
command={{
'By Import': `import { ${props.exportName} } from '@flowgram.ai/materials'`,
'By Import': `import { ${props.exportName} } from '@flowgram.ai/form-materials'`,
// components/type-selector/index.tsx -> components/type-selector
'By CLI': `npx @flowgram.ai/form-materials@latest ${props.filePath
.split('/')

View File

@ -67,7 +67,12 @@ export function ConditionRow({ style, value, onChange, readonly }: PropTypes) {
onChange={(v) => onChange({ ...value, right: v })}
/>
) : (
<UIInput size="small" disabled value={opConfig?.rightDisplay || 'Empty'} />
<UIInput
size="small"
disabled
style={{ pointerEvents: 'none' }}
value={opConfig?.rightDisplay || 'Empty'}
/>
)}
</UIRight>
</UIValues>

View File

@ -65,7 +65,12 @@ export function ConditionRow({ style, value, onChange, readonly }: PropTypes) {
onChange={(v) => onChange({ ...value, right: v })}
/>
) : (
<Input size="small" disabled value={opConfig?.rightDisplay || 'Empty'} />
<Input
size="small"
disabled
style={{ pointerEvents: 'none' }}
value={opConfig?.rightDisplay || 'Empty'}
/>
)}
</UIRight>
</UIValues>