Skip to content

Commit ccd326f

Browse files
authored
fix: treat textarea as input (#47)
* fix: treat textarea as input * fix: release script
1 parent 4416c25 commit ccd326f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/web-integration/src/extractor/dom-util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
export function isInputElement(node: Node): node is HTMLInputElement {
2-
return node instanceof HTMLElement && node.tagName.toLowerCase() === 'input';
2+
return (
3+
node instanceof HTMLElement &&
4+
(node.tagName.toLowerCase() === 'input' ||
5+
node.tagName.toLowerCase() === 'textarea')
6+
);
37
}
48

59
export function isButtonElement(node: Node): node is HTMLButtonElement {

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const semver = require('semver');
33
const dayjs = require('dayjs');
44
const args = require('minimist')(process.argv.slice(2));
55
const bumpPrompt = require('@jsdevtools/version-bump-prompt');
6-
const execa = require('@esm2cjs/execa');
6+
const { execa } = require('@esm2cjs/execa');
77
const chalk = require('chalk');
88

99
const step = (msg) => {

0 commit comments

Comments
 (0)