All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.utils.click.isClickableInput.js Maven / Gradle / Ivy

The newest version!
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.isClickableInput = isClickableInput;

var _isElementType = require("../misc/isElementType");

const CLICKABLE_INPUT_TYPES = ['button', 'color', 'file', 'image', 'reset', 'submit', 'checkbox', 'radio'];

function isClickableInput(element) {
  return (0, _isElementType.isElementType)(element, 'button') || (0, _isElementType.isElementType)(element, 'input') && CLICKABLE_INPUT_TYPES.includes(element.type);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy