fix: use data instead of selectedElement.innerText
This commit is contained in:
@@ -222,7 +222,7 @@ export const BrowserWindow = () => {
|
||||
id: Date.now(),
|
||||
type: 'text',
|
||||
label: `Label ${Object.keys(fields).length + 1}`,
|
||||
data: selectedElement.info?.innerText,
|
||||
data: data,
|
||||
selectorObj: {
|
||||
selector: selectedElement.selector,
|
||||
tag: selectedElement.info?.tagName,
|
||||
|
||||
Reference in New Issue
Block a user