material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

[Auto Complete][Textfield] onFocus and onBlur event

Open mauvew opened this issue 10 years ago • 5 comments

Problem description

Is it possible to support onFocus and OnBlur function for Auto complete or Textfield component? These functions can be very helpful if the content need to be changed into another format once the input is finished and focus is lost.

Versions

  • Material-UI: v0.15.4
  • React: all
  • Browser: all

mauvew avatar Oct 06 '16 08:10 mauvew

@oliviertassinari: what do you think about this?

I can open a PR.

lucasbento avatar Oct 06 '16 11:10 lucasbento

I believe that it's a duplicated issue. It's not the first time I see it.

oliviertassinari avatar Oct 06 '16 11:10 oliviertassinari

Actually Material UI already has those functions.

Example: http://www.webpackbin.com/E1EYtmk0b

lucasbento avatar Oct 06 '16 11:10 lucasbento

@oliviertassinari: I think we can close this.

lucasbento avatar Oct 06 '16 14:10 lucasbento

I agree, it should be good with https://github.com/callemall/material-ui/pull/3356. Thanks.

oliviertassinari avatar Oct 06 '16 14:10 oliviertassinari