diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-07-27 19:24:54 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-07-27 19:24:54 -0400 |
commit | 31fafa54bd85cb292a5facd12d7c8f0ed13d1ea9 (patch) | |
tree | 8fadf84cbab48df9f7c00dede000f79337343302 /src | |
parent | 4cab6e0d15ee27c68c358b59ecc3f7e0a89b514f (diff) |
small timeout thing
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionViewChromes.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionViewChromes.tsx b/src/client/views/collections/CollectionViewChromes.tsx index bf643347f..044d5336a 100644 --- a/src/client/views/collections/CollectionViewChromes.tsx +++ b/src/client/views/collections/CollectionViewChromes.tsx @@ -40,11 +40,11 @@ export class CollectionViewBaseChrome extends React.Component<CollectionViewChro private _datePickerElGuid = Utils.GenerateGuid(); componentDidMount = () => { - this._picker = datepicker("#" + this._datePickerElGuid, { + setTimeout(() => this._picker = datepicker("#" + this._datePickerElGuid, { disabler: (date: Date) => date > new Date(), onSelect: (instance: any, date: Date) => runInAction(() => this._dateValue = date), dateSelected: new Date() - }); + }), 1000); runInAction(() => { this._keyRestrictions.push([<KeyRestrictionRow key={Utils.GenerateGuid()} contains={true} script={(value: string) => runInAction(() => this._keyRestrictions[0][1] = value)} />, ""]); |