You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Long Description
The table does not update when an option is changed. For example, changing the options object or a column title does nothing, even though the table is re-rendering.
The following code does nothing, even though I expect the table to update its data or change a column title when the value of an <input> is changed. I know the function itself is rerunning because the console shows "This should be a rerender. whenever an input value is changed, which is expected.
importReact,{useState}from"react";import{ReactTabulator}from"react-tabulator";exportdefaultfunctionApp(){const[someOptions,setSomeOptions]=useState({// Maybe some other optionsajaxURL: ""});const[columnTitle,setColumnTitle]=useState("Initial title");console.log("This should be a rerender.")return(<div><inputtype={"text"}onChange={event=>{setSomeOptions({...someOptions,ajaxURL: event.target.value})}}/><inputtype={"text"}onChange={event=>{setColumnTitle(event.target.value)}}/><ReactTabulatorcheckOptions={true}options={someOptions}columns={[{title: "Some column title",field: "ignoreme"},{title: columnTitle,field: "summary"}]}></ReactTabulator></div>)}
The text was updated successfully, but these errors were encountered:
Environment Details
Long Description
The table does not update when an option is changed. For example, changing the options object or a column title does nothing, even though the table is re-rendering.
The following code does nothing, even though I expect the table to update its data or change a column title when the value of an
<input>
is changed. I know the function itself is rerunning because the console shows"This should be a rerender.
whenever an input value is changed, which is expected.The text was updated successfully, but these errors were encountered: