Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4c0e5b14
Commit
4c0e5b14
authored
Sep 11, 2019
by
lzd
Committed by
Torkel Ödegaard
Sep 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Piechart: fix unit selector when scrolling is required (#18932)
parent
e5bf3027
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
public/app/core/directives/dropdown_typeahead.ts
+13
-0
No files found.
public/app/core/directives/dropdown_typeahead.ts
View file @
4c0e5b14
...
...
@@ -59,6 +59,14 @@ export function dropdownTypeahead($compile: any) {
[]
);
const
closeDropdownMenu
=
()
=>
{
$input
.
hide
();
$input
.
val
(
''
);
$button
.
show
();
$button
.
focus
();
elem
.
removeClass
(
'open'
);
};
$scope
.
menuItemSelected
=
(
index
:
number
,
subIndex
:
number
)
=>
{
const
menuItem
=
$scope
.
menuItems
[
index
];
const
payload
:
any
=
{
$item
:
menuItem
};
...
...
@@ -66,6 +74,7 @@ export function dropdownTypeahead($compile: any) {
payload
.
$subItem
=
menuItem
.
submenu
[
subIndex
];
}
$scope
.
dropdownTypeaheadOnSelect
(
payload
);
closeDropdownMenu
();
};
$input
.
attr
(
'data-provide'
,
'typeahead'
);
...
...
@@ -105,6 +114,10 @@ export function dropdownTypeahead($compile: any) {
elem
.
toggleClass
(
'open'
,
$input
.
val
()
===
''
);
});
elem
.
mousedown
((
evt
:
Event
)
=>
{
evt
.
preventDefault
();
});
$input
.
blur
(()
=>
{
$input
.
hide
();
$input
.
val
(
''
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment