在按回车键后调用更改事件
2022-08-29 23:53:11
						我是Bootstrap的新手,并陷入了这个问题。我有一个输入字段,一旦我输入一个数字,就会调用函数 from,但我希望在输入整数时按'Enter'时调用它。验证函数也存在同样的问题 - 它调用得太快。onChange
var inputProcent = React.CreateElement(bootstrap.Input, {type: "text",
  //bsStyle: this.validationInputFactor(),
  placeholder: this.initialFactor,
  className: "input-block-level",
  onChange: this.handleInput,
  block: true,
  addonBefore: '%',
  ref:'input',
  hasFeedback: true
});