Skip to content
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

Can’t select pinned column #400

Open
tobiasBora opened this issue May 21, 2023 · 0 comments
Open

Can’t select pinned column #400

tobiasBora opened this issue May 21, 2023 · 0 comments

Comments

@tobiasBora
Copy link

Describe the issue
It is for now impossible to select content spanning multiple columns when one of them is pinned (with colPinStart): for instance here I can’t extend selection to the first column:

image

To Reproduce

This is for instance visible on the demo page, or with this code:

import React, { useEffect, useState } from "react";
import { defineCustomElements } from "@revolist/revogrid/loader";
import { RevoGrid } from "@revolist/revogrid-react";

const App = () => {
  defineCustomElements();
    const [columns, setColumns] = useState([{ prop: "name", pin: 'colPinStart' }, { prop: "age" }, { prop: "city" }]);
    const [source, setSource] = useState([{ name: "1", age: 42, city: "Barcelone" }, { name: "2", age: 48, city: "Paris" }]);

  const afterEdit = ({ detail }) => {
      
  };

  useEffect(() => {
    // Votre logique d'effet ici, si nécessaire
  }, []);

  return (
    <div>
      <RevoGrid
        theme="compact"
        columns={columns}
        source={source}
          onAfterEdit={(e) => afterEdit(e)}
          canFocus={true}
          range={true}
          useClipboard={true}
          readonly={false}
          filter={true}
          resize={true}
      />
    </div>
  );
};

export default App;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant