fix: onValueEvent not sending with value

Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2022-09-28 14:39:15 +02:00
parent e0b6743cd3
commit 62008de7b0
Signed by: Florian Bouillon
GPG Key ID: E05B3A94178D3A7C
2 changed files with 12 additions and 0 deletions

View File

@ -76,6 +76,17 @@ tmp.args = {label: 'Label', helper: 'Helper', strictChoices: true, choices: [
export const Select = tmp export const Select = tmp
tmp = Input.bind({})
tmp.args = {label: 'Label', helper: 'Helper', type: 'number', iconLeft: {
icon: X,
transformer: (v: string) => {
console.log("POUET :D")
return ""
}
}}
export const Number = tmp
tmp = Input.bind({}) tmp = Input.bind({})
tmp.args = {block: true, type: 'textarea', defaultValue : 'd', label: 'Label', helper: 'Helper', choices: [ tmp.args = {block: true, type: 'textarea', defaultValue : 'd', label: 'Label', helper: 'Helper', choices: [
'a', 'a',

View File

@ -368,6 +368,7 @@ export default class Input extends React.PureComponent<Props, States> {
} }
if (this.props.value) { if (this.props.value) {
this.props.onValue?.(value)
return return
} }