iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.41k stars 1.42k forks source link

Generate button doesn’t work on safari for iOS and iPadOS #651

Open dramrarafa opened 8 months ago

dramrarafa commented 8 months ago

Also tried chrome on both os but no luck, any ideas?

thx

MaxQuatro commented 8 months ago

+Edge

ghscuuo commented 8 months ago

What version? Did it used to work? Maybe post some screenshots or videos? Try incognito mode? Try guest mode? Can browser dev tools help shed light on what's going on?

MaxQuatro commented 8 months ago

Ipados 16.7.1 ipad pro 11’ 4 gen, EDGE 118.0.2088.60 (and also in safari and firefox), bip39 page (0.5.6) “generate” button not work There are no problems with version 0.5.4 (with the downloaded file)

ghscuuo commented 8 months ago

Good to hear you have a reasonable workaround with version 0.5.4.

How about version 0.5.5?

Maybe ios doesn't like the span class="text-danger" or the bad grammar: "your your secret" or maybe the ampersand: copy & paste.

MaxQuatro commented 8 months ago

Good evening! I checked the work of version 0.5.5 now - the generate button does not work. If I set the entropy or seed myself, then the addresses are calculated.

ghscuuo commented 8 months ago

Good evening!

That kind of points to this:

    function generateClicked() {
        if (isUsingOwnEntropy()) {
            return;
        }
        // Pressing enter on BIP85 index field triggers generate click event.
        // See https://github.com/iancoleman/bip39/issues/634
        // To cancel the incorrect generation process, stop here if generate is
        // not focused.
        var buttonIsFocused = DOM.generate[0].contains(document.activeElement);
        if (!buttonIsFocused) {
            return;
        }
...

Sorry I won't be much help any more. Someone else will have to help out now. Good luck!

dramrarafa commented 8 months ago

Also the same with iOS and iPadOS 17 on different browsers

iancoleman commented 8 months ago

Thanks for reporting this. Unfortunately I don't have easy access to an iOS device. I've confirmed the generate button doesn't work, but will need some more time or extra help from the community to figure out why.