Autocomplete returns a newline rather than selecting the suggestion

It’s very annoying. it’s always not working when I write display: block