Skip to content
This repository has been 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