Not Support the safari and IOS Safari
See original GitHub issueHi Anyone,
For 0.20.3 release version, I have create a page with Calendar, but the events cannot render in Calendar in Mac Safari and iPhone Safari. Please help me find what’s the problem, Thanks in advance.
Below is the @code:
import React, { PureComponent } from 'react';
import { connect } from 'dva';
import moment from 'moment';
import { Card,Form,Layout} from 'antd';
import BigCalendar from 'react-big-calendar';
import 'react-big-calendar/lib/less/styles.less';
const { Content } = Layout;
@connect(({ school, loading }) => ({
school,
loading: loading.effects['school/fetch'],
}))
@Form.create()
class SchoolProgram extends PureComponent {
state = {
}
// Page loaded
componentDidMount() {
}
event = event => {
return (
<span>
{event.title}
</span>
);
};
render() {
const eventList = [
{
id: 0,
title: 'Board meeting',
start: new Date('2018-12-08 07:08:00'),
end: new Date('2018-12-09 10:10:00'),
eventTypeId:1,
resourceId: 1,
},
{
id: 1,
title: 'MS training',
allDay: true,
start: new Date('2019-01-10 06:08:00'),
end: new Date('2019-01-11 10:10:00'),
eventTypeId:1,
resourceId: 2,
},
{
id: 2,
title: 'Team lead meeting',
start: new Date('2019-01-12 05:08:00'),
end: new Date('2019-01-12 10:10:00'),
eventTypeId:2,
resourceId: 3,
},
{
id: 11,
title: 'Birthday Party',
start: new Date('2019-01-15 04:08:00'),
end: new Date('2019-01-15 10:10:00'),
eventTypeId:2,
resourceId: 4,
},
];
const localizer = BigCalendar.momentLocalizer(moment);
return (
<Layout>
<Content title="School">
<Card bordered={false}>
<div style={{ height: '75vh',minHeight:"580px",minWidth:"650px", background:"#fff",padding: "15px" }}>
<BigCalendar
localizer={localizer}
events={eventList}
startAccessor="start"
endAccessor="end"
/>
</div>
</Card>
</Content>
</Layout>
);
}
}
export default SchoolProgram;
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
If Safari isn't loading websites or quits on your iPhone, iPad, or ...
If you can't load a website or webpage, or Safari quits unexpectedly, follow these steps.
Read more >8 Ways to Fix Safari Not Working on an iPhone - MakeUseOf
One of the simplest and most common fixes for Safari not loading, or crashing, on an iPhone is turning off Safari Suggestions.
Read more >Troubleshoot Lightning Experience on iPad Safari
Salesforce Supports the following Models and Operating Systems for Lightning Experience. Classic Experience is not supported. Ipad Models: iPad Pro 12.9” (2nd ...
Read more >How to enable cookies - Rocky Mountain Power
Step 1: Go to Settings, then scroll down and select “Safari”. Step 2: Scroll down to “Privacy & Security”. Step 3: Verify “Block...
Read more >[iOS 16] Safari Crashing or Not Working after iOS Update
Read this tutorial to get some tips to fix this problem. Also supports iOS 14/13/12. Author Avatar Joy Taylor Last Updated: Sep. 22,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks. The issue has been solved.
@Chinajiyong Try formatting your new Date() with a “T” between the date and time.
Example:
new Date(new Date('2019-01-12T05:08:00'))
.For some reason, Safari requires the “T” to consider it a valid date.