@bpmn-io/form-js-viewer 1.15.0 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +10 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -5164,13 +5164,22 @@ function Textfield(props) {
|
|
|
5164
5164
|
const {
|
|
5165
5165
|
required
|
|
5166
5166
|
} = validate;
|
|
5167
|
-
const [
|
|
5167
|
+
const [onChange, flushOnChange] = useFlushDebounce(({
|
|
5168
5168
|
target
|
|
5169
5169
|
}) => {
|
|
5170
5170
|
props.onChange({
|
|
5171
5171
|
value: target.value
|
|
5172
5172
|
});
|
|
5173
5173
|
});
|
|
5174
|
+
|
|
5175
|
+
/**
|
|
5176
|
+
* @param {import('preact').JSX.TargetedEvent<HTMLInputElement, Event>} event
|
|
5177
|
+
*/
|
|
5178
|
+
const onInputChange = event => {
|
|
5179
|
+
onChange({
|
|
5180
|
+
target: event.target
|
|
5181
|
+
});
|
|
5182
|
+
};
|
|
5174
5183
|
const onInputBlur = () => {
|
|
5175
5184
|
flushOnChange && flushOnChange();
|
|
5176
5185
|
onBlur && onBlur();
|