Skip to content

删除视频url, 需要触发onchange事件 #48

@chengxintuan

Description

@chengxintuan

removeSource = index => {
let sourcesCopy = this.state.sources.concat([])
sourcesCopy.splice(index, 1)
this.setState({sources: sourcesCopy},() => {
// 删除url链接的时候应该也要同步更新html

  this.props.onChange && this.props.onChange(this.generateHtml())
})

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions