The switch does not change its behaviour. If you remove the router, no devices will be able to talk across VLANs. Devices in the same VLAN will be able to talk to each other just like they do with the router present.
Also make sure you don’t have inter VLAN routing set up on your switch as in that case, router or not, the devices may be able to talk to each other from different VLANs. This is a layer 3 switch feature - something to check.