mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-23 03:12:14 +00:00
fix: onValueEvent not sending with value
Signed-off-by: Avior <f.bouillon@aptatio.com>
This commit is contained in:
parent
e0b6743cd3
commit
62008de7b0
@ -76,6 +76,17 @@ tmp.args = {label: 'Label', helper: 'Helper', strictChoices: true, choices: [
|
||||
|
||||
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.args = {block: true, type: 'textarea', defaultValue : 'd', label: 'Label', helper: 'Helper', choices: [
|
||||
'a',
|
||||
|
@ -368,6 +368,7 @@ export default class Input extends React.PureComponent<Props, States> {
|
||||
}
|
||||
|
||||
if (this.props.value) {
|
||||
this.props.onValue?.(value)
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user