Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit ad50e11

Browse files
committed
Update README.md
1 parent ebfde30 commit ad50e11

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

README.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ You have to build the HTML yourself:
4646
<div class="ui-mention-container">
4747
<textarea ng-model="data" ui-mention my-mention></textarea>
4848
<div class="ui-mention-highlight"></div>
49+
<ul class="dropdown" ng-if="$mention.choices.length">
50+
<li ng-repeat="choice in $mention.choices"
51+
ng-class="{active:$mention.activeChoice==choice}"
52+
ng-click="$mention.select(choice)">
53+
{{::choice.first_name}} {{::choice.last_name}}
54+
</li>
55+
</ul>
4956
</div>
50-
<ul class="dropdown" ng-if="$mention.choices.length">
51-
<li ng-repeat="choice in $mention.choices"
52-
ng-class="{active:$mention.activeChoice==choice}"
53-
ng-click="$mention.select(choice)">
54-
{{::choice.first_name}} {{::choice.last_name}}
55-
</li>
56-
</ul>
5757
```
5858
And the CSS:
5959
```scss
@@ -85,6 +85,11 @@ And the CSS:
8585
}
8686
}
8787
}
88+
.dropdown {
89+
position: absolute;
90+
top: 100%;
91+
left: 0;
92+
}
8893
}
8994
```
9095

0 commit comments

Comments
 (0)