-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable in IE: TypeError: Object expected #554
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
Comments
Can you replicate at datable showcase? |
I tried that too :/ @cagataycivici import React, { Component } from 'react';
import {Button} from 'primereact/button';
import logo from './logo.png';
import './App.css';
import 'primereact/resources/themes/omega/theme.css';
import 'primereact/resources/primereact.min.css';
import 'primeicons/primeicons.css';
import { DataTable } from 'primereact/datatable';
import { Column } from 'primereact/column';
class App extends Component {
constructor() {
super();
this.state = {count: 0, cars: [
{ time: "10:15", destination: "Kamino", flight: "BOBBA"},
{ time: "11:20", destination: "Hoth", flight: "C3PO"},
{ time: "11:40", destination: "Jakku", flight: "BB8" },
{ time: "14:00", destination: "Kashyyyyk", flight: "WOOK1E" },
{ time: "15:15", destination: "Endor", flight: "W1CKET", },
{ time: "16:05", destination: "Alderaan", flight: "LE1A" },
{ time: "18:20", destination: "Kessel", flight: "HAN5O1O" },
{ time: "14:45", destination: "Endor", flight: "MI544" },
{ time: "07:10", destination: "koin", flight: "KJ300" },
{ time: "09:31", destination: "Nibiru", flight: "SOLQ23" },
]};
this.increment = this.increment.bind(this);
}
increment() {
this.setState({count: this.state.count + 1});
}
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to PrimeReact</h2>
</div>
<div className="App-intro">
<Button label="Click" icon="pi pi-check" onClick={this.increment} />
<p>Number of Clicks: {this.state.count}</p>
</div>
<DataTable value={this.state.cars}>
<Column field="time" header="Time" />
</DataTable>
</div>
);
}
}
export default App; and a screenshot of what I get once I add the datatable component and my package.json file
|
cagataycivici
added
the
Type: Bug
Issue contains a defect related to a specific component.
label
Sep 11, 2018
cagataycivici
changed the title
DatabTable in IE: TypeError: Object expected
DataTable in IE: TypeError: Object expected
Sep 11, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting this error when using DataTable in IE: TypeError: Object expected
Not sure why. is there a poly fills I need to add?
I added all the dependencies in the docs and nothing.
Could really use some help
The text was updated successfully, but these errors were encountered: