我想当我点击删除按钮,它打开一个弹出式的确认。我尝试使用sweetAlert,但它没有显示任何弹出窗口。
弹出模型方法:
popupdel() {
swal({
title: "Are you sure?",
text: "Your will not be able to recover this imaginary file!",
type: "warning",
showCancelButton: true,
confirmButtonClass: "btn-dan
目前,我只能通过微调按钮更改输入字段的值。
但是,当我在输入中单击以手动键入一个数字时,文本光标就消失了,我无法在里面输入。我可以在输入的同时点击输入框,这是可行的。下面是我的React代码的简化:
constructor(props) {
super(props)
this.state = {
quantity: 1
}
}
//This is just making some API call, but am I supposed to do anything else here to update the value?
handleQu