mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Focus RTE when opening reply
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { noop } from "lodash";
|
||||
import { ReactElement } from "react";
|
||||
|
||||
export default function createNodeMock(element: ReactElement<any>) {
|
||||
if (element.type === "div") {
|
||||
return {
|
||||
innerHtml: "",
|
||||
focus: noop,
|
||||
};
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user