Merged PR 168: Add SmartComponent source code + Restrict Events by giving a root at the first render + Added Render function to a namespace
- Add smartcomponent source code to public/ - Restrict Events by giving a root at the first render + Added Render function to a namespace - Add attribute type="button" to all buttons
This commit is contained in:
parent
7f3f6a489a
commit
444b96736a
17 changed files with 132 additions and 24 deletions
|
@ -16,7 +16,7 @@ export const Symbols: React.FC<ISymbolsProps> = (props: ISymbolsProps) => {
|
|||
const listElements = props.componentOptions.map(componentOption => {
|
||||
if (componentOption.Image.Url !== undefined || componentOption.Image.Base64Image !== undefined) {
|
||||
const url = componentOption.Image.Base64Image ?? componentOption.Image.Url;
|
||||
return (<button
|
||||
return (<button type="button"
|
||||
className='justify-center sidebar-component-card hover:h-full'
|
||||
key={componentOption.Name}
|
||||
id={componentOption.Name}
|
||||
|
@ -37,7 +37,7 @@ export const Symbols: React.FC<ISymbolsProps> = (props: ISymbolsProps) => {
|
|||
</button>);
|
||||
}
|
||||
|
||||
return (<button
|
||||
return (<button type="button"
|
||||
className='group justify-center sidebar-component hover:h-full'
|
||||
key={componentOption.Name}
|
||||
id={componentOption.Name}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue