melloware / react-logviewer

React Lazy LogViewer
https://melloware.github.io/react-logviewer/
Mozilla Public License 2.0
45 stars 10 forks source link

Line Content Click Event Listener #3

Closed melloware closed 1 year ago

melloware commented 1 year ago

Allow clicking on a row. Right now onLineNumberClick is just for the row numbers. Need one for text.

/**
     * Callback to invoke on click of line contents.
     * @param {React.MouseEvent<HTMLElement>} event - Browser event.
     */
    onLineContentClick?(event: React.MouseEvent<HTMLSpanElement>): void;

Original Report: https://github.com/mozilla-frontend-infra/react-lazylog/issues/72

melloware commented 1 year ago

Fixed: https://github.com/melloware/react-logviewer/commit/c013d93306854a3c0818aafefbdf9f4f23e9d0b9