components icon indicating copy to clipboard operation
components copied to clipboard

Tooltip doesn't display inside input-container

Open dhuallanca opened this issue 9 years ago • 4 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

should display tooltip

What is the current behavior?

Tooltip doesn't display on mouse over

What are the steps to reproduce?

https://plnkr.co/edit/NFyqhLB7hcFg5S87oFLe?p=preview

What is the use-case or motivation for changing an existing behavior?

Expected end-user behaviour to show tooltip for input

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/core": "^4.1.2", "@angular/animations": "^4.1.2", "@angular/common": "^4.1.2", "@angular/compiler": "^4.1.2", "@angular/forms": "^4.1.2", "@angular/language-service": "^4.1.2", "@angular/material": ""2.0.0-beta.3", "@angular/flex-layout": "2.0.0-beta.8", "@angular/platform-browser": "^4.1.2", "@angular/platform-browser-dynamic": "^4.1.2", Google chrome 58.0.3029.110

Is there anything else we should know?

dhuallanca avatar Jun 02 '17 15:06 dhuallanca

The input placeholder has pointer-events: none preventing hover from triggering the tooltip. Read more here https://github.com/angular/material2/issues/4167.

If you don't care about native input capabilities as mentioned in #4167, you can use a workaround kinda like this in your css

.mat-input-placeholder, .mat-input-placeholder-wrapper {
  pointer-events: auto !important;
}

willshowell avatar Jun 02 '17 16:06 willshowell

This is working as intended. The floating placeholder for the input should not have any interactions applied to it.

jelbourn avatar Jun 02 '17 23:06 jelbourn

@willshowell, css workaround works well for IE, Chrome, but it doesn't work for safari on iphone.

dhuallanca avatar Jun 03 '17 01:06 dhuallanca

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.