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

Commit 7250ff3

Browse files
committed
docs(dropdown): add note about usage with ngTouch
- Add note about an issue with the click event not bubbling up when using ng-click with ngTouch Closes #5101 Closes #5189
1 parent 63ca2f3 commit 7250ff3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/dropdown/docs/readme.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Each of these parts need to be used as attribute directives.
1616
* `always` - Automatically closes the dropdown when any of its elements is clicked.
1717
* `disabled` - Disables the auto close. You can control it manually with `is-open`. It still gets closed if the toggle is clicked, `esc` is pressed or another dropdown is open. It also won't be closed on `$locationchangeSuccess`.
1818
* `outsideClick` - Closes the dropdown automatically only when the user clicks any element outside the dropdown.
19-
19+
2020
* `dropdown-append-to`
2121
<small class="badge">$</small>
2222
_(Default: `null`)_ -
@@ -32,24 +32,28 @@ Each of these parts need to be used as attribute directives.
3232
<i class="glyphicon glyphicon-eye-open"></i>
3333
_(Default: `false`)_ -
3434
Defines whether or not the dropdown-menu is open. The `uib-dropdown-toggle` will toggle this attribute on click.
35-
35+
3636
* `keyboard-nav`:
3737
<small class="badge">B</small>
3838
_(Default: `false`)_ -
3939
Enables navigation of dropdown list elements with the arrow keys.
40-
40+
4141
### uib-dropdown-menu settings
4242

4343
* `template-url`
4444
_(Default: `none`)_ -
4545
You may specify a template for the dropdown menu. Check the demos for an example.
46-
46+
4747
### Additional settings `uibDropdownConfig`
4848

4949
* `appendToOpenClass`
5050
_(Default: `uib-dropdown-open`)_ -
5151
Class to apply when the dropdown is open and appended to a different DOM element.
52-
52+
5353
* `openClass`
5454
_(Default: `open`)_ -
5555
Class to apply when the dropdown is open.
56+
57+
### Known issues
58+
59+
For usage with ngTouch, it is recommended to use the programmatic `is-open` trigger with ng-click - this is due to ngTouch decorating ng-click to prevent propagation of the event.

0 commit comments

Comments
 (0)