Skip to content

Commit

Permalink
Merge pull request #2290 from TheThingsNetwork/fix/input-message-valu…
Browse files Browse the repository at this point in the history
…e-passing

Enable value passing in input messages
  • Loading branch information
kschiffer authored Apr 4, 2020
2 parents 2c94039 + f5091d6 commit 0478dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/webui/components/input/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ class Input extends React.Component {

let inputPlaceholder = placeholder
if (typeof placeholder === 'object') {
inputPlaceholder = intl.formatMessage(placeholder)
inputPlaceholder = intl.formatMessage(placeholder, placeholder.values)
}

let inputTitle = title
if (typeof title === 'object') {
inputTitle = intl.formatMessage(title)
inputTitle = intl.formatMessage(title, title.values)
}

const v = valid && (Component.validate ? Component.validate(value, this.props) : true)
Expand Down

0 comments on commit 0478dd4

Please sign in to comment.