Skip to content

Commit fa3b26e

Browse files
committed
[dropdown] removed css prop
1 parent e7ebb1e commit fa3b26e

File tree

5 files changed

+2
-30
lines changed

5 files changed

+2
-30
lines changed

doc/api.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,10 +443,6 @@
443443
"type": "component",
444444
"readme": false,
445445
"props": {
446-
"css": {
447-
"type": "string",
448-
"description": "Css class(es) applied to dropdown component"
449-
},
450446
"disabled": {
451447
"type": "boolean",
452448
"description": "Disabled field",

lib/interface.d.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,6 @@ export interface IDatetime {
422422

423423
export interface IDropdown {
424424

425-
/**
426-
* Css class(es) applied to dropdown component
427-
*/
428-
css: string
429-
430425
/**
431426
* Disabled field
432427
*/

src/components/form-inputs/dropdown/_base.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,4 @@ export class _DropdownBase extends Mixin(FieldBase) {
6060
})
6161
multiple: boolean
6262

63-
/**
64-
* Css class(es) applied to dropdown component
65-
*
66-
* @type {string}
67-
*/
68-
@Prop({
69-
type: String
70-
})
71-
css: string
72-
7363
}

src/components/form-inputs/dropdown/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,8 @@ export class Dropdown extends _DropdownBase implements IDropdown {
1515
return $(this.$el.querySelector('.ui.dropdown'))
1616
}
1717

18-
createComponent(ch) {
19-
let css = 'ui selection dropdown'
20-
21-
if (this.css)
22-
css += ' ' + this.css
23-
24-
return ch('div', { 'class': css }, [
18+
createComponent(ch) {
19+
return ch('div', { 'class': 'ui selection dropdown' }, [
2520
ch('input', { attrs: { type: 'hidden', name: this.name } }),
2621
ch('i', { 'class': 'dropdown icon' }),
2722
ch('div', { 'class': 'default text' }, this.placeholder),

src/components/form-inputs/dropdown/schema/props.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@
2222
"multiple": {
2323
"type": "boolean",
2424
"description": "A selection dropdown can allow multiple selections"
25-
},
26-
"css": {
27-
"type": "string",
28-
"description": "Css class(es) applied to dropdown component"
2925
}
3026
},
3127
"methods": {

0 commit comments

Comments
 (0)