From 63541ed7b1c9ad58348ea86c97f3e8b31830535b Mon Sep 17 00:00:00 2001 From: MG12 Date: Thu, 19 Nov 2015 08:37:41 +0800 Subject: clear input content and close select panel when click [x] on select panel --- src/module/Panel.jsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'src/module/Panel.jsx') diff --git a/src/module/Panel.jsx b/src/module/Panel.jsx index 4220da8..f041158 100644 --- a/src/module/Panel.jsx +++ b/src/module/Panel.jsx @@ -72,20 +72,6 @@ const Panel = React.createClass({ this.props.onClear(); }, - getPlaceholder(placeholder) { - if (placeholder) { - return placeholder; - } - - const { locale } = this.props; - if (!this.showHour) { - return locale.placeholdermmss; - } else if (!this.showSecond) { - return locale.placeholderHHmm; - } - return locale.placeholderHHmmss; - }, - showHour: true, showSecond: true, @@ -102,7 +88,7 @@ const Panel = React.createClass({ locale={locale} value={value} formatter={this.getFormatter()} - placeholder={this.getPlaceholder(placeholder)} + placeholder={placeholder} hourOptions={hourOptions} minuteOptions={minuteOptions} secondOptions={secondOptions} -- cgit v1.2.3