瀏覽代碼

Add input type image to ignored input types

The image input type is just a graphical submit button.
master
TheoryOfNekomata 1 年之前
父節點
當前提交
7efbb33f81
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/index.ts

+ 1
- 1
src/index.ts 查看文件

@@ -39,7 +39,7 @@ const FORM_FIELD_ELEMENT_TAG_NAMES = [TAG_NAME_SELECT, TAG_NAME_TEXTAREA] as con
/**
* Types for button-like `<input>` elements that are not considered as a form field.
*/
const FORM_FIELD_INPUT_EXCLUDED_TYPES = ['submit', 'reset'] as const;
const FORM_FIELD_INPUT_EXCLUDED_TYPES = ['submit', 'reset', 'image'] as const;

/**
* Checks if an element can hold a custom (user-inputted) field value.


Loading…
取消
儲存