mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
@ -503,7 +503,7 @@ export class Datetime implements ComponentInterface {
|
|||||||
|
|
||||||
hostData() {
|
hostData() {
|
||||||
const addPlaceholderClass =
|
const addPlaceholderClass =
|
||||||
(this.text === undefined && this.placeholder != null) ? true : false;
|
(this.text == null && this.placeholder != null) ? true : false;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
class: {
|
class: {
|
||||||
@ -519,8 +519,8 @@ export class Datetime implements ComponentInterface {
|
|||||||
// If selected text has been passed in, use that first
|
// If selected text has been passed in, use that first
|
||||||
// otherwise use the placeholder
|
// otherwise use the placeholder
|
||||||
let datetimeText = this.text;
|
let datetimeText = this.text;
|
||||||
if (datetimeText === undefined) {
|
if (datetimeText == null) {
|
||||||
datetimeText = this.placeholder ? this.placeholder : '';
|
datetimeText = this.placeholder != null ? this.placeholder : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
Reference in New Issue
Block a user