diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-27 20:11:10 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-27 20:11:10 -0400 |
commit | 5cbbd71ceb98a554109ac2a4469a02b28a836e61 (patch) | |
tree | f702be437ae2bbb69a45cb43d17fced571aac83e /src | |
parent | 1dd24847a8dc2940bb53af3e42f715edec5f43b2 (diff) | |
parent | 31fafa54bd85cb292a5facd12d7c8f0ed13d1ea9 (diff) |
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
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)} />, ""]); |