source: frontend/node_modules/eslint-plugin-jsx-a11y/lib/util/isContentEditable.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 498 bytes
RevLine 
[9af201e]1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports["default"] = isContentEditable;
7var _jsxAstUtils = require("jsx-ast-utils");
8function isContentEditable(tagName, attributes) {
9 var _prop$value;
10 var prop = (0, _jsxAstUtils.getProp)(attributes, 'contentEditable');
11 return (prop === null || prop === void 0 ? void 0 : (_prop$value = prop.value) === null || _prop$value === void 0 ? void 0 : _prop$value.raw) === '"true"';
12}
13module.exports = exports.default;
Note: See TracBrowser for help on using the repository browser.