Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using web components with Cell #181

Open
lachdoug opened this issue Oct 12, 2018 · 0 comments
Open

Using web components with Cell #181

lachdoug opened this issue Oct 12, 2018 · 0 comments

Comments

@lachdoug
Copy link

Should custom web components work with Cell?

I'm finding that web components don't work when their property names conflict with tag attribute names.

For example (using Chromium - Firefox web component support is lagging) , this Elix text area works:

<!DOCTYPE html>
<html lang='en'>
<head>
  <meta charset='UTF-8'>
  <script src='https://www.celljs.org/cell.js'></script>
  <script type='module' src='https://component.kitchen/modules/AutosizeTextarea.js'></script>
</head>
<script>
var myElixTextArea = {
  $cell: true,
  $type: 'elix-autosize-textarea',
  'minimum-rows': 2,
}
</script>
</html>

But when a placeholder property is is added:

var myElixTextArea = {
  $cell: true,
  $type: 'elix-autosize-textarea',
  'minimum-rows': 2,
  placeholder: 'Type here'
}

Error is thrown:
Uncaught RangeError: Maximum call stack size exceeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant