Skip to content

Commit c7bb2f6

Browse files
committed
fix(CTimePicker): improve default types
1 parent a1d4b27 commit c7bb2f6

File tree

3 files changed

+5
-23
lines changed

3 files changed

+5
-23
lines changed

js/dist/time-picker.js

Lines changed: 2 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/dist/time-picker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/src/time-picker.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ const DefaultType = {
105105
container: 'string',
106106
disabled: 'boolean',
107107
footer: 'boolean',
108-
hours: '(array|function)',
108+
hours: '(array|function|null)',
109109
indicator: 'boolean',
110110
inputReadOnly: 'boolean',
111111
invalid: 'boolean',
112112
locale: 'string',
113113
minutes: '(array|boolean|function)',
114-
name: 'string',
114+
name: '(string|null)',
115115
placeholder: 'string',
116116
required: 'boolean',
117117
seconds: '(array|boolean|function)',
@@ -700,16 +700,6 @@ class TimePicker extends BaseComponent {
700700
return classes
701701
}
702702

703-
_getConfig(config) {
704-
config = {
705-
...this.constructor.Default,
706-
...Manipulator.getDataAttributes(this._element),
707-
...(typeof config === 'object' ? config : {})
708-
}
709-
710-
return config
711-
}
712-
713703
_getPartOfTime(part) {
714704
if (this._date === null) {
715705
return null

0 commit comments

Comments
 (0)