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

[TextField] Floating label is not clickable

Open steverandy opened this issue 11 years ago • 20 comments

Steps to reproduce:

  1. Go to http://material-ui.com/#/components/text-fields
  2. Click on the text field sample (first row, second column), specifically on the floating label

Actual: Clicking on the floating label the first time does not focus the field Expected: Clicking on the floating label for the first time should focus the field input

steverandy avatar Nov 10 '15 05:11 steverandy

+1

Grmiade avatar Nov 13 '15 01:11 Grmiade

+1 Also cursor should be default instead of auto. Just like hint text.

vijayrawatsan avatar Nov 13 '15 19:11 vijayrawatsan

Yeap, we should improve this!

oliviertassinari avatar Nov 13 '15 19:11 oliviertassinari

+1 cursor: text user-select: none (needs prefixes) onClick focuses the input. can submit PR if needed.

mattkrick avatar Nov 17 '15 22:11 mattkrick

Duplicate of: https://github.com/callemall/material-ui/issues/1011

bendiy avatar Nov 18 '15 00:11 bendiy

+1, only happens first time you try to click. after clicking besides the label and losing focus again it works correctly

flyon avatar Nov 23 '15 16:11 flyon

#2228 is supposed to fix this. Can you confirm?

oliviertassinari avatar Nov 23 '15 16:11 oliviertassinari

I am still having issues with this. As per flyon's comment, only happens first time you try to click. after clicking besides the label and losing focus again it works correctly this is definitely still occurring.

JasonWeiseUnreal avatar Nov 24 '15 20:11 JasonWeiseUnreal

It works for me, only on TextField ! But the fix was only for TextField :p

otroboe avatar Nov 26 '15 20:11 otroboe

It's working for TextField but not for SelectField & DatePicker. v0.14.0-rc1

zachguo avatar Dec 11 '15 11:12 zachguo

@zachguo Would you mind raising this (not working for SelectField) as a separate bug? I believe it's different than issue #1011.

piotr-dobrogost avatar Dec 14 '15 11:12 piotr-dobrogost

@piotr-dobrogost see #2517

zachguo avatar Dec 14 '15 19:12 zachguo

Now that we now have #2517 for the SelectField component, can someone confirm whether there any outstanding issues relating to this with the TextField component?

I'd like to close this or clarify what the remaining problems are. Thanks!

newoga avatar Jan 16 '16 23:01 newoga

Fixed in #2228. See #2201 for DatePicker issue.

mbrookes avatar Feb 10 '16 14:02 mbrookes

@flyon @CoveTechnologyAus How did you fix that? I am on version 0.14.4 and I'm having this problem.

raphaelparent avatar Mar 01 '16 19:03 raphaelparent

Current pre-release version is 0.15.0-alpha.1

mbrookes avatar Mar 01 '16 23:03 mbrookes

@mbrookes I know, but I'm building something that will be use in production and I don't want to rely on a pre-release version.

Since it was closed on November 17th (around 3 1/2 months ago) and that there's mention of this working in 0.14.0-rc1, I just thought that this was fix in the 0.14.4, if not I'll just wait for the official release of 0.15.0 to be available.

raphaelparent avatar Mar 02 '16 15:03 raphaelparent

that's weird, I have upgrade to the next version "0.15.0-beta.2", but the issue still exist, is there any solution for this?

plz advise. thx.

jackyon avatar Apr 24 '16 10:04 jackyon

sorry, new version did work, it fixed the issue.

jackyon avatar Apr 25 '16 01:04 jackyon

it is not fixed for SelectField, I tested with the v0.15.0 example on the official site http://www.material-ui.com/#/components/select-field. when I click inside "Floating Label Text", no menu pops.

lamaslam avatar May 20 '16 06:05 lamaslam