File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @platejs/core ' : patch
3+ ---
4+
5+ Fix jumpy non-breaking-space
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export type StyledSlateLeafProps<
161161 SlateHTMLProps < C , T > ;
162162
163163const NonBreakingSpace = ( ) => (
164- < span style = { { fontSize : 0 } } contentEditable = { false } >
164+ < span style = { { fontSize : 0 , lineHeight : 0 } } contentEditable = { false } >
165165 { String . fromCodePoint ( 160 ) }
166166 </ span >
167167) ;
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ export type StyledPlateLeafProps<
177177 PlateHTMLProps < C , T > ;
178178
179179const NonBreakingSpace = ( ) => (
180- < span style = { { fontSize : 0 } } contentEditable = { false } >
180+ < span style = { { fontSize : 0 , lineHeight : 0 } } contentEditable = { false } >
181181 { String . fromCodePoint ( 160 ) }
182182 </ span >
183183) ;
You can’t perform that action at this time.
0 commit comments