mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
fix: 修复 inputFile inputImage 首次表单提交数据没有携带的问题 (#4730)
This commit is contained in:
parent
573980c887
commit
679a606424
@ -742,8 +742,8 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
{
|
||||
uploading: false
|
||||
},
|
||||
() => {
|
||||
this.onChange(!!this.resolve);
|
||||
async () => {
|
||||
await this.onChange(!!this.resolve);
|
||||
|
||||
if (this.resolve) {
|
||||
this.resolve(
|
||||
@ -932,6 +932,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
}
|
||||
|
||||
onChange((this.emitValue = value), undefined, changeImmediately);
|
||||
console.log('onChange', changeImmediately);
|
||||
this.syncAutoFill();
|
||||
}
|
||||
|
||||
|
@ -702,8 +702,8 @@ export default class ImageControl extends React.Component<
|
||||
uploading: false,
|
||||
locked: false
|
||||
},
|
||||
() => {
|
||||
this.onChange(!!this.resolve, false);
|
||||
async () => {
|
||||
await this.onChange(!!this.resolve, false);
|
||||
|
||||
if (this.resolve) {
|
||||
this.resolve(
|
||||
|
Loading…
Reference in New Issue
Block a user