Skip to content

Commit

Permalink
prefer a nested div
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Sep 24, 2024
1 parent 6bccb23 commit d016db3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/control/RCustom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,14 @@ export default class RCustom extends RControlBase<RControlProps, Record<string,

render(): JSX.Element {
return (
<>
<div className='_rlayers_RCustomControl'></div>
<div className='_rlayers_RCustomControl'>
<div
className={['ol-control', this.props.className].join(' ')}
ref={this.targetRef}
>
{this.props.children}
</div>
</>
</div>
);
}
}

0 comments on commit d016db3

Please sign in to comment.