【问题标题】:AutoCompleteEditor(react-data-grid) not working in chromeAutoCompleteEditor(react-data-grid)在 chrome 中不起作用
【发布时间】:2019-04-30 07:01:07
【问题描述】:

实际上,我在 reactjs 中工作。导入了 npm react-data-grid,因为我在列中使用 AutoCompleteEditor 来选择列出的值。它以前工作正常,现在在 Firefox 等中工作。现在,我不确定 Chrome 是否已更新,AutoCompleteEditor 列表未显示在 react-data-grid 表中。知道为什么不显示吗? 提前谢谢你!

【问题讨论】:

    标签: javascript reactjs react-data-grid


    【解决方案1】:

    我正在使用 chrome/safari 和 AutoCompleteEditor 工作正常。

    设置选项

    const commonDuration = [
      { id: 0, title: '0:15' }, { id: 1, title: '0:30' }, { id: 2, title: '0:45' },
      { id: 3, title: '1:00' }, { id: 4, title: '1:30' }, { id: 5, title: '2:00' }
    ];
    

    在列中

    editor: <AutoCompleteEditor options={commonDuration} />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-11
      • 1970-01-01
      • 2017-12-01
      • 2017-01-11
      • 1970-01-01
      • 2023-03-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多