问题标签 [formsy-react]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
reactjs - How to do so that my field must at least be able to contain only numbers and a + in front of the number (if the user wishes)
For example the user can enter: +444123454656656 OR 123454656656 - only numbers or a + in front of the number.
reactjs - Formsy与react-select,提交后获取元素而不是值
我正在使用 Formsy 进行输入验证。对于选择输入,我使用的是 react-select,我为此创建了这个自定义组件,
;
在该changeValue
方法中,我得到了正确的选择选项,但是当我使用 Formsy 的onValidSubmit
事件提交表单时,我得到了所有表单值的对象,但是对于 react-select 我得到了这样的东西,
这是我的 Formsy 表单代码,