1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 20:20:34 +02:00

Sort out default dropdown caret icons

This commit is contained in:
Toby Zerner
2015-08-04 11:42:24 +09:30
parent b8a224f87b
commit a14be00041
2 changed files with 3 additions and 2 deletions

View File

@@ -13,10 +13,11 @@ import icon from 'flarum/helpers/icon';
*/
export default class SelectDropdown extends Dropdown {
static initProps(props) {
props.caretIcon = typeof props.caretIcon !== 'undefined' ? props.caretIcon : 'sort';
super.initProps(props);
props.className += ' Dropdown--select';
props.caretIcon = props.caretIcon || 'sort';
}
getButtonContent() {