faulknercs / Knockstrap

Knockout bindings to twitter bootstrap 3
faulknercs.github.io/Knockstrap/
MIT License
142 stars 37 forks source link

Tooltip not showing up on disabled button in chrome #51

Closed afzal273 closed 3 years ago

afzal273 commented 8 years ago

Is there a way to make tooltip show on a disabled button? I looked up BS documentation and it said to put button inside a div, but even with that the tooltip is showing up only if button is enabled and not if button is disabled.

<div style="display: inline-block" data-bind="tooltip: { title: 'Create new Purchase', placement: 'top'}"><button type="button" data-bind="visible: showCreateLinkButton(), enable: $root.isUserAdmin && enableLinkSyncButton, click: $root.createLinkOrder.bind($data, 'create')" class="btn text-center btn-success btn-xs">Create Purchase</button></div>
afzal273 commented 8 years ago

I noticed that tooltips are showing up on disabled buttons in firefox regardless of whether they are wrapped inside divs, but not in chrome either way.

faulknercs commented 3 years ago

As far as I can see, issue is not reproducable with the lates Chrome (87.0.4280.88): https://jsfiddle.net/faulknercs/k51dhpym/ image

Anyway thanks for the feedback!