BREXIT does not indicate a fatal flaw with direct democracy; rather it indicates a society still learning how to do it.
Blockchain, a new technology, may someday enable internet-based elections, which in turn could enable direct democracy.