Skip to content

Commit

Permalink
Avoid extending input in select component. Closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jun 7, 2023
1 parent a301c71 commit d4b7bdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,13 @@ export default function(editor: Editor) {

// SELECT
Components.addType(typeSelect, {
extend: typeInput,
isComponent: el => el.tagName == 'SELECT',

model: {
defaults: {
tagName: 'select',
droppable: false,
highlightable: false,
components: [
createOption('opt1', 'Option 1'),
createOption('opt2', 'Option 2'),
Expand Down

0 comments on commit d4b7bdd

Please sign in to comment.