Giter Club home page Giter Club logo

Comments (5)

409H avatar 409H commented on July 21, 2024

@Samyoul Good find - yep, I can replicate

I think the POA should be to not do the address logic for EAL if an li has an attribute ng-repeat. What do you think?

from etheraddresslookup.

Samyoul avatar Samyoul commented on July 21, 2024

The current structure with EAL is:

<ul class="dropdown-menu dropdown-menu-left" ng-show="dropdownExistingContracts">
   <!-- ngRepeat: abi in ajaxReq.abiList track by $index -->
	<li ng-repeat="abi in ajaxReq.abiList track by $index" class="ng-scope">
		<a ng-click="selectExistingAbi($index)" class="ng-binding">300 - Warrior for Battle Contract 
			<small class="mono ng-binding">
				<a
				title="See this address on the blockchain explorer"
				href="https://etherscan.io/address/0xaEc98A708810414878c3BCDF46Aad31dEd4a4557"
				class="ext-etheraddresslookup-link ext-etheraddresslookup-link-highlight"
				target="_blank"
				>0xaEc98A708810414878c3BCDF46Aad31dEd4a4557</a>
			</small>
		</a>
	</li>
	...
</ul>

I think the POA should be to not do the address logic for EAL if an li has an attribute ng-repeat. What do you think?

I think that should fix this issue, but will why does injecting the <a> into the HTML cause this issue?


Structure without EAL:

<li ng-repeat="abi in ajaxReq.abiList track by $index" class="ng-scope">
    <a ng-click="selectExistingAbi($index)" class="ng-binding">300 - Warrior for Battle Contract 
        <small class="mono ng-binding">0xaEc98A708810414878c3BCDF46Aad31dEd4a4557</small>
    </a>
</li>

from etheraddresslookup.

Samyoul avatar Samyoul commented on July 21, 2024

I think that the bug is related to the application JS firing before Angular can do its thing, because manually altering the HTML doesn't give this issue.

I think your idea handles this bug as gracefully as possible.

Is it possible to defer the execution of the application JS until after the page JS has finished?

from etheraddresslookup.

409H avatar 409H commented on July 21, 2024

Is it possible to defer the execution of the application JS until after the page JS has finished?

Yep, should be able to modify this block in DomManipulator

window.addEventListener("load", function() {
    let objEtherAddressLookup = new EtherAddressLookup();
});

from etheraddresslookup.

409H avatar 409H commented on July 21, 2024

Will be looking at this tonight 1900 (GMT timezone)

from etheraddresslookup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.