Skip to content

Commit

Permalink
Fix the bug that custom-log scrollbar uncontrolled (#103)
Browse files Browse the repository at this point in the history
Signed-off-by: LLKCoder <[email protected]>
  • Loading branch information
LLKCoder authored Mar 21, 2024
1 parent 3aee036 commit 481af33
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ export const SimplePanel: React.FC<Props> = ({ options, data, width, height }) =

sceneItem.state.body?.addActivationHandler(() => {
setTimeout(() => {
const divElement = document.querySelectorAll('div');
divElement.forEach(element => {
element.scrollTo(0, 0)
});
const tableElement = document.querySelectorAll('tbody');
tableElement.forEach(element => {
// 创建一个观察者对象,并传入回调函数
Expand Down
1 change: 0 additions & 1 deletion grafana_plugin/custom_log_panel/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { SimplePanel } from './components/SimplePanel';
import { SimpleEditor } from './components/SimpleEditor';

export const plugin = new PanelPlugin<SimpleOptions>(SimplePanel).setPanelOptions((builder) => {
console.log("111111")

return builder
.addBooleanSwitch({
Expand Down

0 comments on commit 481af33

Please sign in to comment.