Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <Select
  2. label='Team'
  3. name='team'
  4. options={teamOptions}
  5. placeholder='Team'
  6. onClick={this.handleTeamClick}
  7. />
  8.  
  9. export const rfSelect = ({ input, options, meta, ...rest }) => (
  10. <Select {...input} onChange={(e,v) => input.onChange(v.value)} options={options} {...rest} />
  11. )
  12.  
  13. <Field
  14. component={rfSelect}
  15. label='Team'
  16. name='team'
  17. options={teamOptions}
  18. placeholder='Team'
  19. onClick={this.handleTeamClick}
  20. />
  21.  
  22. <Field
  23. component={rfSelect}
  24. label='Team'
  25. name='team'
  26. options={teamOptions}
  27. placeholder='Team'
  28. onClick={this.handleTeamClick}
  29. onChange={this.handleTeamChange}
  30. />
  31.  
  32. handleTeamChange(e, sel) {
  33. this.props.dispatch(bla.handleTeamChange(sel.value))
  34. }
  35.  
  36. export const rfSelect = ({ input, options, meta, ...rest }) => (
  37. <Select {...input} onChange={(e,v) => input.onChange(v.value)} options={options} {...rest} />
  38. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement