Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

feat(tooltip): Prevent close tooltip with 'esc' key #6626

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RDD2017
Copy link

@RDD2017 RDD2017 commented Aug 31, 2017

Motivation

Tooltip must be shown if <input> tag isn't valid, but if user press 'ESC' key it closes tooltip and reset validation.

This PR introduce new option 'tooltip-enable-esc'.

If user set 'tooltip-enable-esc' as false, tooltip will not closed.

By default 'tooltip-enable-esc' is true.

How to use

        <input type="text"
               ng-model="amount"
               numbers-only
               tooltip-enable-esc="false"
               uib-tooltip="Amount field must be number"
               tooltip-enable="error"
               tooltip-is-open="error"
               tooltip-trigger="'none'"
               tooltip-placement="bottom" />

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy